android - Google Chrome for Android <select> 元素不选择任何选项

标签 android html google-chrome select drop-down-menu

我的单页网络应用程序中有一个选择元素。该应用程序采用响应式设计,可在移动设备上运行。以下是开发版的链接。

http://mapcodexpublish.com/mcxwebdev/

theselect 元素适用于所有浏览器,但 chrome for mobile 除外。 On chrome for android, when I thouch it shows the option list, but when select an option, it doesnt change at all.我试图在更改事件上发出警告,但没有触发。

我厌倦了真实的设备,但这里是模拟器的屏幕截图。这完全一样。

state 1

state 2

state 3

有没有人有类似的问题或有解决这个奇怪问题的想法?

最佳答案

似乎对我有用的 super hacky 修复是在触发更改时触发选择上的模糊事件。像这样的东西:

$('select').change(function(){
  if (/Android/.test(navigator.userAgent)){
    $(this).blur();
  }
});

真的不为这个“修复”感到自豪,但它确实有效。

关于android - Google Chrome for Android <select> 元素不选择任何选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21110776/

相关文章:

java - 如何使用 Android Studio 在 Android 应用程序中可视化音频文件?

android - 错误 : AGPBI: Program type already present: com. google.android.gms.auth.api.signin.internal.zzg

javascript - 强制 Chrome 显示格式为树结构的 Json 响应

html - 不同网络浏览器中相同 html 元素的不同 UI

html - Flexbox "align-items: center"不适用于 Chrome 测试版

java - 使用公司品牌名称命名类和资源

android - 使用 Powerapps 将间歇性 Logo 添加到我的应用程序

html - 将 xtable 中的 html 代码保存在字符串中

影响图像位置的 Javascript

html - 使用 css 对齐表格单元格