Can I remove Android default link styling in webview

后端 未结 2 1446
囚心锁ツ
囚心锁ツ 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: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;
    }
    

提交回复
热议问题