当前位置: 首页 > Web前端 > HTML

element-ui改变el-switch开关组件的大小

时间:2023-03-29 12:17:36 HTML

1.需要通过css改变el-switch的大小2.功能实现。el-switch__core{width:30px!important;高度:16px;}.el-switch__core::after{宽度:14px;高度:14px;margin-top:-1px;}.el-switch.is-checked.el-switch__core::after{margin-left:-15px;}原效果:修改效果: