How to remove the arrow from a select element in Firefox

后端 未结 30 1626
北恋
北恋 2020-11-22 15:58

I\'m trying to style a select element using CSS3. I\'m getting the results I desire in WebKit (Chrome / Safari), but Firefox isn\'t playing nicely (I\'m not ev

30条回答
  •  迷失自我
    2020-11-22 16:33

    I know this question is a bit old, but since it turns up on google, and this is a "new" solution:

    appearance: normal Seems to work fine in Firefox for me (version 5 now). but not in Opera and IE8/9

    As a workaround for Opera and IE9, I used the :before pseudoselector to create a new white box and put that on top of the arrow.

    Unfortunately, In IE8 this doesn't work. The box is rendered correctly, but the arrow just sticks out anyway... :-/

    Using select:before works fine in Opera, but not in IE. If I look at the developer tools, I see it is reading the rules correctly, and then just ignores them (they're crossed out). So I use a around the actual

    提交评论

提交回复
热议问题