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

jq怎么做局部div滚动?

jq怎么做局部div滚动?

Smart猫小萌 2018-11-13 13:41:06
<style>.top , .bottom{height:130px;background:#000;} .center{height:400px;overflow:hidden;position:relative;}.center .box{width:100%;height:100%;position:absolute;}.center .box ul{overflow:hidden;}.center .box ul li{background:red;height:400px;width:100%;}</style><div class="top"></div><div class="center">     <div class="box">         <ul>         <li></li>         <li></li>         </ul>     </div></div><div class="bottom"></div>jq怎么做ul li的局部滚动,中间这块不能出现滚动条。还要考虑阻止浏览器滚动条事件。需求是:用鼠标滑轮滚动。li会下滚或者上滚。前提是我这个鼠标在这里center范围,在范围外面可以使用浏览器的滚动事件,里面的禁止。
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 425 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

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

帮助反馈 APP下载

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

公众号

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