开发者

Combobox CSS style not applying in IE7

开发者 https://www.devze.com 2023-02-04 16:43 出处:网络
I have a small problem with my webpage. I have a combobox and I\'ve written a CSS class for it. It works fine except in IE7. Cananybody give me a solution for that?

I have a small problem with my webpage. I have a combobox and I've written a CSS class for it. It works fine except in IE7. Can anybody give me a solution for that?

This is my CSS:

.textbox_short{
   float:left;
   width:150px;
   padding:3px;
   margin-left:10px;
   /*margin-bottom:5px;*/
   margin-top:5px;
   font-family:Verdana, Geneva, sans-serif;
   font-size:12p开发者_开发百科x;
   color:#666;
   border:1px solid #F90;
}

And my HTML:

<select name="drop_country" class="textbox_short" id="drop_country">
</select>


IE<8 does not give padding and border to SELECT elements. Try to wrap SELECT inside a DIV or SPAN Follow this link

IE6/IE7 css border on select element

0

精彩评论

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