How does element-ui modify the height of the el-switch switch?

The width of

has attribute value, but the height is not. Can you only modify the source code?

clipboard.png

Mar.23,2021

you can add a class name to the outermost container, and then find the class name of the button in the console. You can add the height yourself. If it doesn't work, it may be because of scope. Just remove it


just modify it in your own css

.el-switch__core {
    height: 30px;// 
}

modify his style directly in his own css

>>>.el-switch__core
    height 15px
>>>.el-switch__core::after
    height 12px
    width 12px
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e2a8-41432.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e2a8-41432.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?