【发布时间】:2015-08-31 20:29:22
【问题描述】:
我目前正在开发一个响应式混合应用程序。 我们知道如何让下拉列表在 WKWebView 中工作吗?它当前不响应触摸并选择列表中的第一项而不拉出下拉列表。 我知道这在 UIWebView 中有效,但在 WKWebView 中无效。 任何想法表示赞赏。
用 HTML 代码更新:
<ul id="select-list" class="select-list" tabindex="-1" role="listbox" style="top: 18px; width: 235px; display: block;"><li id="list-option0" role="option" class="select-option is-selected" tabindex="-1">Choose</li><li id="list-option1" role="option" class="select-option" tabindex="-1">Number1</li></ul>
更多更新: 使用 WKWebKit 而不是 UIWekKit 时会调用来自 Javascript 的 Document onResize。
【问题讨论】:
-
请更具体。就像发布一些
HTML代码以获取不起作用的示例下拉列表。 -
我已经更新了上述cmets中的代码。
标签: ios iphone ipad xcode7 wkwebview