【问题标题】:html input box on android has a green highlight on tapandroid上的html输入框在点击时有一个绿色突出显示
【发布时间】:2014-08-05 22:25:04
【问题描述】:

我们有一个适用于 android 的 phonegap 应用程序。

在 HTC 设备上的 android 4.1.1 上,我们遇到以下问题:

点击输入框时,会以绿色突出显示。但是实际的问题是您点击了一个框,但下面的框被突出显示。但随后点击的框再次获得焦点。

我们已尝试将其删除,但 -webkit-tap-highlight-color 或轮廓未解决问题。

【问题讨论】:

  • 我们在运行 4.1.1 的 HTC One X 上遇到了类似的问题。你找到解决办法了吗?
  • 还没有,如果找到请告诉我

标签: javascript android html cordova html-input


【解决方案1】:

试试这个:

* {
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}

body {
    -webkit-touch-callout: none;                /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none;             /* prevent webkit from resizing text to fit */
    -webkit-user-select: none;                  /* prevent copy paste, to allow, change 'none' to 'text' */
    /*background-color:#E4E4E4;*/
}

【讨论】:

  • 添加此元标记
猜你喜欢
  • 2020-11-19
  • 2011-08-06
  • 2011-02-23
  • 2015-02-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多