.el-select-dropdown样式
时间: 2023-10-07 08:10:41 浏览: 95
.el-select-dropdown是用于修改el-select下拉框样式的类名。使用el-select时,如果需要修改下拉框的样式,可以通过为el-select-dropdown添加类名来实现。
另外,可以通过修改.el-select-dropdown__item的样式来进一步调整下拉框选项的样式。
此外,官方提供了popper-class选项,可以通过设置popper-class来修改下拉框的样式。
需要注意的是,选中el-select的选项时,选项的容器并不在挂载的div#app上,所以设置样式时需要考虑到这一点。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [el-select-dropdown 修改下拉框的样式](https://blog.csdn.net/zkx529/article/details/124779126)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [详解如何修改el-select的样式:popper-append-to-body和popper-class](https://download.csdn.net/download/weixin_38622827/13135174)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文