我想删除水龙头高亮颜色.但它不适用于移动设备.当我试图在pc上看到使用检查元素时它也没有显示.
我的css是
button, button:hover, li:hover, a:hover , li , a , *:hover, * { -webkit-tap-highlight-color: rgba(0,0,0,0); }
在我的CSS上有任何错误..
同时使用:
-webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-tap-highlight-color: transparent;
要么
* { -webkit-touch-callout:none; /* prevent callout to copy image, etc when tap to hold */ -webkit-text-size-adjust:none; /* prevent webkit from resizing text to fit */ -webkit-tap-highlight-color:rgba(0,0,0,0); /* prevent tap highlight color / shadow */ -webkit-user-select:none; /* prevent copy paste, to allow, change 'none' to 'text' */ }