2011-05-10 42 views
2

如何更改DropDownList的背景色在IE在Firefox它描绘了正确的总体下拉列表中,但在IE中总是存在白色的下拉边境DropDownList的背景色在IE

+0

什么是IE版本?我没有看到Firefox 4,IE9和Chrome 11的区别。 –

回答

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>