PC小程序就是不支持的。参考如下: https://developers.weixin.qq.com/community/develop/doc/0004e0fef2c938e9ef8b6fda051400?highLine=onPullDownRefresh
PC端小程序使用onPullDownRefresh不执行问题真机和开发者工具都可以实现下拉onPullDownRefresh功能,可是在PC端的小程序触发不了onPullDownRefresh事件
2021-07-28问题原因应该是滚动条对PC微信版的内置浏览器兼容问题 解决方法重绘滚动条样式。具体代码如下: /** 手动设置滚动条样式 ** start ** overFlowDiv为设置滚动条溢出的DIV类名:**/ .overFlowDiv::-webkit-scrollbar-track-piece { background-color: #f1f1f1; border-left: 1px solid rgba(0, 0, 0, 0); } .overFlowDiv::-webkit-scrollbar { width: 5px; height: 13px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } .overFlowDiv::-webkit-scrollbar-thumb { background-color: #c1c1c1; background-clip: padding-box; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; min-height: 28px; } .overFlowDiv::-webkit-scrollbar-thumb:hover { background-color: #787878; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } /** 手动设置滚动条样式 ** end **/
PC端小程序滚动条问题1、小程序通过webview加载H5页面。H5页面设置x轴滚动条通过如下代码给外层div添加: $(this).parent().css("width", "1200px"); $(this).parent().css("overflow-x", "auto"); 2、PC端打开小程序,通过WebView访问的页面。表格列若过多;会出现x轴滚动条,但PC端小程序不会出现(且无法进行滚动)。 手机打开小程序、电脑/手机直接访问对应网页,均可以。对比如图 [图片]
2021-07-19