![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mui
mister_snail
Many a pickle makes a muckle.
展开
-
记mui之 “h5页面ios 多个input切换时 页面会回到顶部”
问题描述:ios端页面滑动至最底部,点击input框输入文字等,点击其他地方,页面滚动条会滚动到顶部。 解决方法: html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; -webkit-touch-callout: none; -webkit-user-select: none; } .mui-content { height: 100%; overflow: auto; } ...原创 2020-10-14 16:04:31 · 670 阅读 · 0 评论 -
解决mui中alert组件更改高度后不能触摸滚动问题
如下: // 处理详情内容过长,over-flow:hidden不能触摸滚动问题 window.addEventListener('touchmove', function(e) { var target = e.target; if (target && target.getAttribute('class') === 'mui-popup-text') { // 阻止冒泡 e.stopPropagation(); } }, true); 查看详情方法: //原创 2020-08-06 10:10:59 · 454 阅读 · 0 评论