添加以下类便可去掉:html
-webkit-tap-highlight-color: rgba(0,0,0,0);
添加 ontouchstart 能够解决:java
<body ontouchstart>
添加以下代码能够解决:web
* { -webkit-touch-callout:none; -webkit-user-select:none; -khtml-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none; }
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
-webkit-overflow-scrolling:touch;
可是这一行代码有不少 bug ,使用时要谨慎。
我的比较推荐:better-scrollpost
我的推荐 weui 的实现方式:ui
.weui-cell:before{ content: " "; position: absolute; left: 0; top: 0; right: 0; height: 1px; border-top: 1px solid #D9D9D9; color: #D9D9D9; -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: scaleY(0.5); transform: scaleY(0.5); }
其它实现 0.5px 细线方式.net
auto: 会 | none: 不会scala
text-size-adjust: none;