Modify the default font and background of el-radio

At first I used /deep/, but I don’t know why it didn’t work. It worked before, and then I added !import, but it didn’t work either. Then I went to Baidu and saw::v-deep, tested it myself. efficient.

//Add color class
 
::v-deep depth selector
 
//Modify each label text and margin
   class name or id name::v-deep .el-radio__label{       color: #eee;       } //Modify the selected label Text    class name or id name::v-deep .el-radio__input.is-checked + .el-radio__label {        color: #e5e5e5 !important;    } //Modify the selected radio background color, border   class name or id name: :v-deep .el-radio__input.is-checked .el-radio__inner {        background: #e5e5e5 !important; import        border-color: #e5e5e5 !important;    }










Supongo que te gusta

Origin blog.csdn.net/m0_45218136/article/details/126515242
Recomendado
Clasificación