How to remove the arrow from a select element in Firefox

后端 未结 30 1717
北恋
北恋 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:55

    While not a complete solution I've found that…

    -moz-appearance: window;
    

    …works to some extent. You can't change the background (-color or -image) but the element can be rendered invisible with color: transparent. Not perfect but it's a start and you don't need to replace the system level element with a js one.

提交回复
热议问题