How to remove the arrow from a select element in Firefox

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

    building on the answer by @JoãoCunha, one css style that is usefull for more then one browser

    select {
        /*for firefox*/
        -moz-appearance: none;
        /*for chrome*/
        -webkit-appearance:none;
        text-indent: 0.01px;
        text-overflow: '';
    }
    /*for IE10*/
    select::-ms-expand {
        display: none;
    }
    

提交回复
热议问题