发现一个问题,以前使用好好地代码,在ie10中出现点击select的下拉选择后,焦点总是到第一个select中。最终发现是由于label引起,示例代码如下:
<html>
<head>
</head>
<body>
<label>
<select id="mySelect">
<option>ONE</option>
<option>TWO</option>
</select>
<select id="mySelect">
<option>壹</option>
<option>贰</option>
</select>
</label>
</body>
</html>
去掉label后即正常。
查询w3school也没看到有相关说明,暂记录一下。