开发者

Getting rid of link-click "flash" indicator in iOs UIWebView

My iPad app uses a lot of UIWeb views to display content. The user clic开发者_如何学Cks 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?


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

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜