elementui树形控件不生效
时间: 2023-08-26 19:06:35 浏览: 110
如果您在使用Element UI的树形控件时发现样式不生效,可能有几个原因导致这个问题。首先,Element UI组件自带的样式可能不是您想要的,您可以通过检查元素获取到组件的class名称,在style里面进行样式重写。然而,即使您进行了样式重写,有时仍然可能无法生效。这可能是因为您在样式标签`<style scoped></style>`中使用了`scoped`属性。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Element UI 修改样式不生效(例如修改树形控件节点高度)](https://blog.csdn.net/Jacy_Lee_LDF/article/details/107869610)[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_1"}}] [.reference_item style="max-width: 50%"]
- *2* [element-ui树形控件el-tree详解](https://blog.csdn.net/m0_63040701/article/details/130892750)[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_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文