开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜