bor*_*llo 5 html firefox select drop-down-menu
我在我的网站上有一个语言下拉菜单,它可以在谷歌浏览器,Safari和Internet Explorer中正常使用,但它在Firefox中有问题.
这是代码:
<a href="">
<select id="languageSelector" style="background-color: transparent" onchange="location = this.options[this.selectedIndex].value;">
<option value=".">ESPAÑOL</option>
<option value="./en/index.html">ENGLISH</option>
<option value="./de/index.html">DEUTSCH</option>
<option value="./fr/index.html">FRANÇAIS</option>
<option value="./nl/index.html">NEDERLANDS</option>
</select>
</a>
Run Code Online (Sandbox Code Playgroud)
它也有罕见的行为.如果我使用键盘移动选择并按Enter键,它可以工作,但是用鼠标单击不起作用.
我正在使用Firefox 38.0.5.
任何帮助,将不胜感激.
为什么你的代码被 a-Tag ( <a href=""></a>) 包围?如果您单击内容(例如下拉列表),则 href="" 会重新加载页面。删除 a 或更改href=""为href="#".
| 归档时间: |
|
| 查看次数: |
375 次 |
| 最近记录: |