针对你的问题“el-menu 选中颜色”,这通常是指在 Element UI 框架中,当 el-menu 组件的某个菜单项被选中时,该项的背景色或文字颜色。为了改变这种选中颜色,你可以通过以下几种方式来实现: 1. 通过CSS样式修改 Element UI 允许你通过自定义CSS来改变 el-menu 组件的样式,包括选中状态的颜色。你可以使用 !
active-text-color 是选中的文本颜色 这句话设置选中的背景颜色 .el-menu-item.is-active { background-color: #ccff00!important; } <template><divclass="common-layout"><!--全屏的关键:height:100vh--><el-containerstyle=" height: 100vh"><el-asidestyle="background-color: #191970;"width="200p...
UE+ElementUI更改导航菜单选中背景颜色 主要是设置 .el-menu-item.is-active 选择器的样式属性 官方文档中提供background-color、text-color、active-text-color三种属性 仅提供了激活菜单文字颜色,并没有提供激活菜单的其他参数 <el-menudefault-active="0"class="el-menu-vertical-demo"@open="handleOpen"@close=...
鼠标移入: .el-menu-item:hover { color: #a0cfff; background-color: #eaeeff !important; } 选中: .el-menu-item.is-active { color: #6681fa; background-color: #eaeeff !important; }