开发者

How to set the color to the select box and its border in firefox?

开发者 https://www.devze.com 2023-01-04 21:29 出处:网络
I want to set the color to the border of the select box and its contents. I am able to see the color to the border of select box in IE. Bu开发者_Python百科t I cannot see the border color in Firefox.

I want to set the color to the border of the select box and its contents. I am able to see the color to the border of select box in IE. Bu开发者_Python百科t I cannot see the border color in Firefox.

I want to set the color to the border to the select box items also. Is there any way to do this ?

To set the border color to the IE I am using the following code base.

select {
 border-color:blue;
}


In firefox, you need to specify the full border:

for instance:

border:1px solid blue;

Problem, however, is that it'll then render the select box in the old non-native blocky style. It's rather ugly compared to the native rendering (especially on Mac OS X).

Also -- for color:

color:green;

And background color:

background-color:gray;
0

精彩评论

暂无评论...
验证码 换一张
取 消