我有一个输入字段,我想使用css / less更改背景,因为我无法更改html代码
我尝试过
/* bg_yellow */ .bg_yellow.o_form_field_many2one.o_with_button.o_form_field.o_form_required{
background-color: yellow;
}
<div class="o_form_field_many2one o_with_button bg_yellow o_form_field o_form_required">
<div class="o_form_input_dropdown">
<input class="o_form_input ui-autocomplete-input" id="o_field_input_2" autocomplete="off" type="text" />
</div>
</div>
如何修复css类以更改输入的背景?
答案 0 :(得分:2)
尝试一下,您就完成了...
input#o_field_input_2 {
background: yellowgreen;
}