html-select

How can I change the background color of option from select tag?

烂漫一生 提交于 2020-12-10 08:47:40
问题 I am trying to change the background colour for option from the select tag. I tried select > option but it doesn't work. My code below: select { width: 100%; height: 32px; background-image: url("images/2017_04_form_select.jpg"); padding-right: 25px; /* Safari 3-4, iOS 1-3.2, Android 1.6- */ -webkit-border-radius: 0; /* Firefox 1-3.6 */ -moz-border-radius: 0; /* Opera 10.5, IE 9, Safari 5, Chrome, Firefox 4, iOS 4, Android 2.1+ */ border-radius: 0; background-repeat: no-repeat; background