1
2
3
4
|
在调用显示层时加上这句js代码就可以了: document.documentElement.style.overflow = "hidden"; 关闭层的时间别忘了在加上这句: document.documentElement.style.overflow = "scroll"; |
1
2
|
var top_temp = $(document).scrollTop()||document.documentElement.scrollTop || document.body.scrollTop; window.parent.scrollTo(0,top_value); |