How to hide drop down arrow in IE8 & IE9?

后端 未结 5 1277
小蘑菇
小蘑菇 2020-11-28 07:50

I used the CSS below to hide the drop down arrow in FF, safari, chrome and added my own image to customize.

select 
{
  -webkit-appearance:none;
  -moz-appea         


        
5条回答
  •  星月不相逢
    2020-11-28 08:26

    not sure about every use case, but in my case with a fixed width x height bg pic set up for the parent, this worked for IE and FF too:

    HTML

    CSS

    #parent{
      ...
      overflow: hidden;
      width:100px; // for example
    }
    
    #parent select{
      ...
      width:120px;
    }
    

    jsfiddle

提交回复
热议问题