How to remove the arrow from a select element in Firefox

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

    Or, you can clip the select. Something along the lines of:

    select { width:200px; position:absolute; clip:rect(0, 170px, 50px, 0); }
    

    This should clip 30px of the right side of select box, stripping away the arrow. Now supply a 170px background image and voila, styled select

提交回复
热议问题