如何在IE中更改DropDownList BackColor?在Firefox中它正确绘制整个DropDown,但在IE中,DropDown的边框始终保持白色
答案 0 :(得分:0)
您可以尝试以下标记:
<html>
<title>Select Test</title>
<style type="text/css">
..foo { background: black; color:white; }
..bar { background: transparent; color: red;}
</style>
<select style="background:yellow; color: red;">
<option style="background:green;color:white;">Abelone</option>
<option class="foo">Banana</option>
<option class="bar">Cantaloupe</option>
</select>
</html>