How to remove the arrow from a select element in Firefox

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

    The other answers didn't seem to work for me, but I found this hack. This worked for me (July 2014)

    select {
    -moz-appearance: textfield !important;
        }
    

    In my case, I also had a woocommerce input field so I used this

    .woocommerce .quantity input.qty {
    -moz-appearance: textfield !important;
     }
    

    Updated my answer to show select rather than input

提交回复
热议问题