el-dropdown-menu 滚动条
时间: 2023-09-22 07:13:05 浏览: 146
vue+element搭建后台小总结 el-dropdown下拉功能
el-dropdown-menu 滚动条的样式可以通过设置CSS来实现。根据引用[3]所提供的样式代码,可以看出滚动条的样式设置如下:
.project-dropdown::-webkit-scrollbar {
width: 5px;
height: 5px;
background-color: #F5F5F5;
}
.project-dropdown::-webkit-scrollbar-track {
border-radius: 10px;
background-color: #F5F5F5;
}
通过上述代码,可以将滚动条的宽度和高度分别设置为 5px,并且设置滚动条的背景颜色为 #F5F5F5。同时,border-radius 属性可以设置滚动条的边框圆角,这里设置为 10px。这样就可以实现 el-dropdown-menu 内容区域的滚动条样式。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [改造ElementUI中的el-dropdown下拉菜单](https://blog.csdn.net/weixin_40469224/article/details/106001423)[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* *3* [Element-UI 给el-dropdown添加滚动条](https://blog.csdn.net/ddk54321/article/details/89083335)[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 ]
阅读全文