【发布时间】:2026-01-13 22:00:02
【问题描述】:
我有一个 phonegap android 应用程序,想在“单击”某物时禁用突出显示。我发现这是为了防止突出显示:
*{
/* Prevent any object from being highlighted upon touch event*/
-webkit-tap-highlight-color: rgba(0,0,0,0); }
它对我不起作用。我还发现有人说在较新的 android 版本(> 4.1)中不再工作。那么有没有解决方案可以防止在新版本中突出显示?
【问题讨论】:
-
如果你跟着
-webkit-tap-highlight-color: transparent;会发生什么? -
“透明”在三星 S3 Android 4.1.2 上对我也不起作用
标签: android cordova highlighting