IE & Firefox - custom drop down could not remove native arrows

前端 未结 5 2114
清酒与你
清酒与你 2020-12-13 09:40

I\'m trying create a custom drop down control and I need to hide the arrows from the native controls. I\'m using the following CSS, which is working for Chrome

5条回答
  •  有刺的猬
    2020-12-13 10:19

    Bare-bones examples:

    For I.E:

    select::-ms-expand {
        display: none;
    }  
    

    For Firefox:

    select {
        -moz-appearance: none;
        appearance: none;
    
        text-overflow: ''; /* this is important! */
    }
    

提交回复
热议问题