<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范圍,在范圍外面可以使用瀏覽器的滾動事件,里面的禁止。
jq怎么做局部div滾動?
Smart貓小萌
2018-11-13 13:41:06