[英]How can I change Background Color of the Dropdown Contact Form Plugin
I trying to find out which Selectors its for the background Color of Dropdown Contactform.我试图找出哪些选择器用于下拉联系表的背景颜色。
I used many selector but nothing works.我使用了很多选择器,但没有任何效果。
Contact form:联系表:
You would have to select the option tags inside the select tag.您必须在选择标签内选择选项标签。 See my example below.
请参阅下面的示例。
I have an id of #dropDown
on the select tag.我在选择标签上有一个
#dropDown
id。 Then, I use #dropDown option
to change the color of the text inside the option tags in the dropdown.然后,我使用
#dropDown option
来更改下拉选项标签内的文本颜色。
So in the inspect tool, get the CSS attribute of that select element and change the color of the option children.因此,在检查工具中,获取该选择元素的 CSS 属性并更改选项子项的颜色。
html, body { width: 100%; min-height: 100%; padding: 0; margin: 0; background-color: crimson; } #dropDown { background-color: transparent; color: white; } #dropDown option { color: black; }
<form action=""> <select name="" id="dropDown"> <option value="">Test 1</option> <option value="">Test 2</option> <option value="">Test 3</option> </select> </form>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.