使用jQuery,我想禁用正文的滚动:
我的想法是:
body{ overflow: hidden;}
scrollTop();/scrollLeft()
有没有更好的办法?
更新:
请参阅http://jsbin.com/ikuma4/2/edit,查看我的示例,以及原因
我知道有人会想"为什么他不只是position: fixed在面板上使用?".
position: fixed
由于我有其他原因,请不要这样做.
css jquery scroll
css ×1
jquery ×1
scroll ×1