看来我在 IE 8 中遇到了 css 问题。下面的代码在 FF 上运行没有问题。然而,在 IE 8 中,CSS 样式似乎并未应用于选择元素。 你知道什么可能导致 IE 8 中的问题吗?我希望它与两种浏览器都兼容。
代码如下:
<html>
<body>
<style type="text/css">
.highlight{
border-style: solid;
border-width: 2px;
border-color: #FF0000;
}
</style>
<table>
<tr>
<td>
<select class="highlight" >
<option></option>
<option value="125" >Test1 - Test2</option>
</select>
</td>
</tr>
</table>
</body>
</html>
最佳答案
关于html - IE 8选择类问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3186691/