我可以在 webview 中删除 Android 默认链接样式吗 [英] Can I remove Android default link styling in webview

查看:18
本文介绍了我可以在 webview 中删除 Android 默认链接样式吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您在 Android 浏览器中单击链接时,默认情况下,目标链接区域会以橙色框突出显示.长按然后打开用于链接处理的上下文菜单(复制、粘贴、新窗口等).有没有办法在 webview 中禁用其中一个/两个?我在 scriptaculous 中使用 highlight code 并且默认的 android 链接样式正在覆盖在效果之上.

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 handling (copy, paste, new window, etc). Is there a way to disable either / both of these in webview? I'm using the highlight code in scriptaculous and the default android link styling is being laid over top of the effect.

推荐答案

这可能有用:如何隐藏 Android WebView 高亮边框

答案是:添加这个 CSS * { -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.

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

希望如此.

这篇关于我可以在 webview 中删除 Android 默认链接样式吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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