为了账号安全,请及时绑定邮箱和手机立即绑定

隐藏滚动条屏幕不能切换

老师,为啥我隐藏滚动条以后,滚动鼠标就不恩给你切换了呢。。。。不解

正在回答

2 回答

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>页面切换</title>
<style type="text/css">
body{ font-family:Arial, Helvetica, sans-serif; margin:0; padding:0;}
html,body{ height:100%; overflow:hidden;}
#container,.section{ height:100%;}
#container{ width:400%; }
.section{ width:25%;}
#section0,#section1,#section2,#section3{ background-color:#FCC; background-size:cover; background-position:50% 50%;}
#section0{ background-image:url(images/1-2-3.png)}
#section1{ background-image:url(images/4-5-6.png)}
#section2{ background-image:url(images/1-2-3.png)}
#section3{ background-image:url(images/4-5-6.png)}
.float{ float:left;}
</style>
</head>
<body>
<div id="container">
 <div class="section float" id="section0"></div>
    <div class="section float" id="section1"></div>
    <div class="section float" id="section2"></div>
    <div class="section float" id="section3"></div>
</div>
</body>
</html>

0 回复 有任何疑惑可以回复我~

代码贴出来才方便解决

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

隐藏滚动条屏幕不能切换

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号