滚动条框没被隐藏
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>4-3练习</title>
<style type="text/css">
body {
/*overflow-x:hidden;*/
/* 滚动条问题未解决 */
/*overflow-y:scroll;*/
}
* {
margin: 0px;
padding: 0px;
/*overflow: hidden;*/
/*overflow-y: hidden;
-ms-overflow: none;
overflow: -moz-none; */
}
.container {
width: 100%;
height: 4000px;
z-index: 1;
position: absolute;
overflow: scroll;
background: url("http://img1.sycdn.imooc.com/climg//59c9f7ce0001839219034033.png") center no-repeat ;
}
.nav_left img {
width: 200px;
height: 300px;
position: fixed;
left:0;
top:50%;
z-index: 9999;
margin-top:-150px;
}
.nav_right img {
width: 200px;
height: 300px;
position: fixed;
right:0;
top:50%;
z-index: 9999;
margin-top:-150px;
}
body::-webkit-scrollbar {
display: none;
}
</style>
</head>
<body>
<div class="container" >
<!-- <div class="background">
</div> -->
<div class="nav_left">
<img src="http://img1.sycdn.imooc.com/climg//5a3383d00001a3dd02240364.png" alt="nav_left">
</div>
<div class="nav_right">
<img src="http://img1.sycdn.imooc.com/climg//5a3383c70001f1b702240364.png" alt="nav_left">
</div>
</div>
</body>
</html>
Chrome浏览器
FireFox浏览器
改来还是没变。。。
正在回答 回答被采纳积分+1
相似问题
登录后可查看更多问答,登录/注册
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星