DropDownList BackColor在IE中

时间:2011-05-10 20:52:08

标签: asp.net

如何在IE中更改DropDownList BackColor?在Firefox中它正确绘制整个DropDown,但在IE中,DropDown的边框始终保持白色

1 个答案:

答案 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>