开发者

Alignment issue with dropdown list

开发者 https://www.devze.com 2023-04-03 07:55 出处:网络
Is there anything I can do about thi开发者_StackOverflow社区s? <%=Html.DropDownList(\"MySelectedReport\",Model.MyList,new {style=\"width:220px;\"}) %>

Is there anything I can do about thi开发者_StackOverflow社区s?

<%=Html.DropDownList("MySelectedReport",Model.MyList,new {style="width:220px;"}) %>

alignement issue

P.S. This only happens in IE 9,8. Firefox and Chrome are rendering the dropdown aligned.


From what I see, you probably have something like this in you css select { border: 1px solid #ccc }. If you remove border style of select element, your dropdown will be rendered correctly.


From what I belive, its an IE only trait Im afraid :(

Another lovely IE problem!

0

精彩评论

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