checkBox 样式无效
发布于 5 年前 作者 leimin 577 次浏览 来自 问答

请问按照如下方式设置的checkbox样式,为什么一点变化没有?哪位可以帮帮忙解答,谢谢


checkbox .wx-checkbox-input{

    border-radius:50%;

    width:20px;height:20px;

}
checkbox .wx-checkbox-input.wx-checkbox-input-checked{

    border-color:#F0302F !important;

    background:#F0302F !important;

}
checkbox .wx-checkbox-input.wx-checkbox-input-checked::before{

    border-radius:50%;

    width:20px;

    height:20px;

    line-height:20px;

    text-align:center;

    font-size:15px;

    color:#fff;

    background:transparent;

    transform:translate(-50%, -50%) scale(1);

    -webkit-transform:translate(-50%, -50%) scale(1);

}

1 回复

问题解决了,把设置checkbox的样式放在了app.wxss中可以了

回到顶部