简体   繁体   中英

Styling HTML select element

I have tried everything to remove the default down arrow button from the the SELECT element, but couldn't succeed yet.

I have also tested the background image, that shows behind the default button. And even tried by making NONE as Background, but it's not working for me.

How can I style a select element so the arrow does not appear?

It's impossible to do in all browsers (reliably) without a JavaScript workaround. Not to mention, if you're not careful it will provide a bad UX. The one I prefer for tasteful styling of the select element is:

http://uniformjs.com/

You just need to edit the sprite to look like you want and it'll take care of the rest.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM