JavaScript 滚动条
一、禁止滚动条滚动,滚动条不消失
function prohibit_scroll() {
//禁止滚动条滚动
var top = $(document).scrollTop();
$(document).on('scroll.unable',function (e) {
$(document).scrollTop(top);
})
}
function remove_pscroll() {
//解除禁止滚动条滚动
$(document
原创
2021-12-01 12:01:49 ·
719 阅读 ·
0 评论