epe*_*leg 5 html css outline samsung-mobile
有没有办法关闭三星Galaxy s2中移动浏览器使用的高亮效果?
我已经尝试过:
-webkit-tap-highlight-color:rgba(0,0,0,0)
-webkit-tap-highlight-color:transparent
-webkit-touch-callout: none;
outline:none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
Run Code Online (Sandbox Code Playgroud)
或者 - 有人可以准确地解释这些效果显示的时候吗 我可以检测屏幕触摸启动并以不触发这些效果的方式触摸吗?
谢谢
CSS:
.borderImage {
-webkit-tap-highlight-color:rgba(0,0,0,0);
}
Run Code Online (Sandbox Code Playgroud)
HTML:
<div class="borderImage">
<a href="#">Some text</a>
</div>
Run Code Online (Sandbox Code Playgroud)
在这里找到;): - webkit-tap-highlight-color:rgba(0,0,0,0); 在一个div?
编辑(很高兴知道):
/* No background, just iOS:*/
-webkit-tap-highlight-color: transparent;
/* No background iOS + Android: */
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4876 次 |
| 最近记录: |