当在移动Safari中触摸一个链接或任何带有onclick事件的内容时,会出现一个深灰色的框覆盖在元素上。这被称为什么?我可以使用哪个CSS选择器来去掉它?
谢谢!
谢谢!
这是-webkit-tap-highlight-color。以下是一些额外的信息:
http://css-infos.net/property/-webkit-tap-highlight-color
/* webkit-tap-highlight-color */
a:link { -webkit-tap-highlight-color: #aa0000; }
/* To set it to none use a totally transparent RGBA */
a:link { -webkit-tap-highlight-color: rgba(0,0,0,0); }
你还可以查看Safari Mobile开发文档,以查看支持的CSS属性。