当页面作为 Web 独立应用程序时,错误的 webkit-tap-highlight-color 行为
我正在尝试使用 css 删除 iPad 中网页点击时的突出显示,
-webkit-tap-highlight-color: rgba(0, 0, 0, 0)
这在直接使用 iPad2 中的浏览器时效果非常好。但是,如果我将页面移动到带有漂亮大图标的网络应用程序,则该行为不再有效。怪人没有?
设置
document.documentElement.style.webkitTouchCallout = "none";
正如这个问题中指出的那样不起作用
一些想法,提示受到欢迎
I'm trying to remove the highlight on tap of a web page in the iPad with the css
-webkit-tap-highlight-color: rgba(0, 0, 0, 0)
This works great when using directly the browser in my iPad2. However if I move the page to a web app, with the a nice big icon, the behavior is not any longer working. Weirdo no ?
Setting
document.documentElement.style.webkitTouchCallout = "none";
as pointed in this question does not work
Some ideas, hints are welcomed
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
-webkit-tap-highlight-color
和-webkit-user-select
的组合对我有用。您可以将它们应用到单个元素或html
。The combination of
-webkit-tap-highlight-color
and-webkit-user-select
works for me. You can apply these to an individual element, orhtml
.