【问题标题】:Change -webkit-tap-highlight-color to transparent将 -webkit-tap-highlight-color 更改为透明
【发布时间】:2015-04-09 04:47:12
【问题描述】:

我添加了 -webkit-tap-highlight-color: rgba(0, 0, 0, 0);我在以下网站上的 CSS:http://www.aanzet.eu

仍然在 iphone 上,当我单击链接时出现闪烁的粉红色问题。

搜索 StackExchange 但没有找到解决我的问题的方法。有人可以帮我吗?

【问题讨论】:

标签: css iphone


【解决方案1】:

尝试两个选择器:

-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-tap-highlight-color: transparent;

【讨论】:

  • 通过添加您的代码和以下代码,问题得到解决:document.addEventListener("touchstart", function(){}, true);
猜你喜欢
  • 2014-01-18
  • 2012-01-21
  • 2011-11-22
  • 2016-11-26
  • 1970-01-01
  • 2010-12-30
  • 1970-01-01
  • 2012-02-11
  • 1970-01-01
相关资源
最近更新 更多