element el-dropdown 样式
程序员文章站
2022-06-16 08:42:38
...
去掉小三角形(两句)
.el-popper .popper__arrow::after {
content: none;
}
.el-popper .popper__arrow {
border: 0;
}
样式(ul包着li)
ul : .el-dropdown-menu
li: .el-dropdown-menu__item
.el-dropdown-menu {
border:none;
color:#666;
border-radius: 0;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.el-dropdown-menu__item:not(.is-disabled):hover{
background-color:#e6f4fb;
color:#666;
}