我的网站上有一个可用的下拉菜单,但它在 iPhone 和 iPad 上根本不起作用。是否有一种可管理的方式来强制 iPhone/iPad 使用其原生菜单选择器?
http://jsfiddle.net/craigzilla/6nZ5Q/
HTML:
<div class="dropdown"> <span class="dropdown-toggle" tabindex="0"></span>
<div class="dropdown-text" id="dropdown_colours">Colours</div>
<ul class="dropdown-content" id="dropdown_colours">
<li><a href="../black.html" target="_self">Black</a>
</li>
<li><a href="../grey.html" target="_self">Grey</a>
</li>
<li><a href="../red.html" target="_self">Red</a>
</li>
<li><a href="../blue.html" target="_self">Blue</a>
</li>
<li><a href="../green.html" target="_self">Green</a>
</li>
<li><a href="../purple.html" target="_self">Purple</a>
</li>
</ul>
</div>