这是一个非常奇怪的错误,但是当你加载我的页面时,它可以滚动而不会有任何意图。你看不到滚动条,但它只是可以。我过去遇到过这个问题。
html{background-color: rgb(255, 255, 240); max-width: 100%; max-height: 100%; height: 100%; width: 100%;}
body{margin: 0px;}
div#head{display: block; width: 100%; height: 53px; background-color: rgb(0, 0, 0); border-radius: 0px;}
div#head > div#icon_logo{display: inline-block; width: 60px; height: 60px; background-image: url("../../Type/Media/Logo_Icon.jpg"); background-size: contain; background-position: center; background-repeat: no-repeat;}
<!DOCTYPE HTML>
<HTML LANG="EN-US">
<head>
<meta charset="UTF-8" />
<meta name="description" content="A website for Ty Q." />
<title>TyPrograms</title>
<link rel="stylesheet" href="Type/Stylesheet/stylesheet_HOME.css" type="text/css" />
<link rel="icon" href="Type/Media/Favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="Type/Media/Favicon.ico" type="image/x-icon" />
</head>
<body>
<div id="head"><div id="icon_logo"></div></div>
</body>
<script type="text/javascript" src="CDN/Type/Script/minified/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="CDN/Type/Script/minified/waypoint-1.6.2.min.js"></script>
<script type="text/javascript" src="CDN/Type/Script/minified/angular-1.5.5.min.js"></script>
<script type="text/javascript" src="Type/Script/javascript_HOME.js"></script>
</HTML>
答案 0 :(得分:0)
我设置了你的代码,并没有看错。
但是,如果您不想滚动页面,可以在css中设置overflow:hidden;