2011-12-20 62 views
0

选择我用下面的CSS <code>select</code>标签标签问题

select { 
    background-color: transparent; 
    border: 1px solid #A96800; 
    color: #fff; 
    font-family: "Verdana","Lucida Fax","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif; 
    font-size: 10pt; 
    height: 21px; 
    margin-bottom: 5px; 
    padding-left: 3px; 
    width: 260px; 
} 

这个CSS影响文本也。

+0

最新的问题? – 2011-12-20 06:09:18

+0

你想问什么? – hungneox 2011-12-20 06:09:55

+0

不清楚你想说什么。更详细地解释你的问题。 – Maheep 2011-12-20 06:10:20

回答

2

您无法看到选项,因为在您的CSS中,您将文本颜色设置为白色。

color: #fff; 

只是删除上述行,以便你的CSS是这样的:

select { 
    background-color: transparent; 
    border: 1px solid #A96800; 
    font-family: "Verdana","Lucida Fax","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif; 
    font-size: 10pt; 
    height: 21px; 
    margin-bottom: 5px; 
    padding-left: 3px; 
    width: 260px; 
} 

现在,您可以查看您的选项,以及。

下面是更新小提琴:http://jsfiddle.net/UJMkN/1/

希望这有助于。

+0

是的。它工作正常。 – 2011-12-20 07:47:12