Can I remove Android default link styling in webview

后端 未结 2 1443
囚心锁ツ
囚心锁ツ 2020-12-08 15:10

When you click a link in the Android browser, the target link area gets highlighted with an orange box by default. A longpress then opens up the context menu for link handl

相关标签:
2条回答
  • 2020-12-08 15:32

    This might be useful: How to Hide Android WebView Highlight Border

    The answer being: add this CSS * { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }.

    Hopefully it is.

    0 讨论(0)
  • 2020-12-08 15:36

    The suggested solution sets the color as transparent black:

    * {
      -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }
    

    Simply specifying the color as transparent should work:

    * {
      -webkit-tap-highlight-color: transparent;
    }
    
    0 讨论(0)
提交回复
热议问题