日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

微信端防止下拉

發布時間:2023/12/15 编程问答 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 微信端防止下拉 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

本文參考了,https://segmentfault.com/a/1190000013335812

?

<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="format-detection" content="telephone=no"><title>禁止下拉</title><style type="text/css">.scroll{position:absolute; overflow:scroll; -webkit-overflow-scrolling: touch; top:0; left:0; bottom:0; right:0;}</style> </head> <body> <div class="scroll"> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 禁止下拉!<br/> 是不是可以啊!!! 是的話 那就贊賞一下吧! <img src="http://wxpad.cn/yunpan/cdn/imgsrc/1519366332.jpg" style="width: 100%;" /> </div> </body> <script type="text/javascript">//禁止下拉var overscroll = function(el) {el.addEventListener('touchstart', function() {var top = el.scrollTop, totalScroll = el.scrollHeight, currentScroll = top + el.offsetHeight//If we're at the top or the bottom of the containers//scroll, push up or down one pixel.////this prevents the scroll from "passing through" to//the body.if(top === 0) {el.scrollTop = 1} else if(currentScroll === totalScroll) {el.scrollTop = top - 1}})el.addEventListener('touchmove', function(evt) {//if the content is actually scrollable, i.e. the content is long enough//that scrolling can occurif(el.offsetHeight < el.scrollHeight)evt._isScroller = true}) } overscroll(document.querySelector('.scroll')); document.body.addEventListener('touchmove', function(evt) {//In this case, the default behavior is scrolling the body, which//would result in an overflow. Since we don't want that, we preventDefault.if(!evt._isScroller) {evt.preventDefault()} }) </script> </html>

  

轉載于:https://www.cnblogs.com/windseek/p/8464450.html

創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎

總結

以上是生活随笔為你收集整理的微信端防止下拉的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。