el-select修改颜色
时间: 2023-08-19 10:14:37 浏览: 271
Element-ui 多选.md
根据提供的引用内容,可以看出要修改el-select下拉框中选项的颜色,可以通过添加全局样式或通过/deep/来修改.el-select-dropdown__item的样式内容,还可以通过popper-class设置的类名添加样式。\[3\]另外,还可以给el-select添加ref,并在change事件中通过修改样式来改变下拉框的颜色。\[2\]具体的实现方法可以参考引用\[2\]中提供的代码。
#### 引用[.reference_title]
- *1* [[element-ui] el-select 设置元素不同颜色](https://blog.csdn.net/qq_14993591/article/details/129830768)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [el-selecet 实现自定义选项颜色](https://blog.csdn.net/weixin_45249740/article/details/123717403)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [el-select下拉框选项的样式修改(背景色、hover、字体等)](https://blog.csdn.net/qq_26695613/article/details/127870263)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文