移動端彈窗時靜止頁面滾動

先定義兩個方法,分別是禁止滾動和恢復滾動的方法css var save_scorll;//記錄滾動條滾動的值 //打開顯示層方法 doc1表示彈出層的標籤名 doc2表示彈出層裏面最外層內容的標籤名 function show_mark(doc1,doc2){ var scorll_ = document.body.scrollTop || document.documentElemen
相關文章
相關標籤/搜索