摆脱链接点击“闪光” iOs UIWebView中的指标 [英] Getting rid of link-click "flash" indicator in iOs UIWebView

查看:101
本文介绍了摆脱链接点击“闪光” iOs UIWebView中的指标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的iPad应用程序使用大量UIWeb视图来显示内容。用户单击带有链接的小图像以使用其他内容提取较小的视图。当您点击UIWebview中的链接时,链接会突出显示灰色片刻以指示单击。在图像中的链接的情况下,整个图像矩形闪烁灰色片刻,并且它非常难看。有没有办法禁用这种行为?

My iPad app uses a lot of UIWeb views to display content. The user clicks small images with links to pull up a smaller view with additional content. When you tap a link in a UIWebview, the link highlights gray for a moment to indicate the click. In the case of links in an in an image, the whole image rectangle flashes gray for a moment, and it's pretty ugly. Is there any way to disable this behavior?

推荐答案

当然,使用-webkit-tap-highlight-color CSS属性:

Sure, use the -webkit-tap-highlight-color CSS property:

  <style type="text/css">
  a {
      -webkit-tap-highlight-color:rgba(0,0,0,0);
  }       
  </style>

这篇关于摆脱链接点击“闪光” iOs UIWebView中的指标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆