[英]How to add css to option tag in select in VUE js
只需为每个选项添加一个类,如下所示:在您的模板中:
<select>
<option class="custom_class_here"></option>
</select>
以你的风格:
.custom_class_here{
customstyle: here
}
或者
select option{
stlye:here
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.