阅读背景:

单选多选样式写法

来源:互联网 

动画多选样式

// html
<div id="box">
    <input type="checkbox" id="check" name="check" />
    <label for="check">Checkbox</label>
</div>

// css
input[type=checkbox]+label:before {
    height: 16px;
    line-height: 16px;
    width: 16px;
    border: 1px solid #000;
    display: inline-block;
    vertical-align: top;
    text-align: center;
    margin-right: 5px;
    content: "13";
    color: transparent;
    transition: color ease .3s;
}
input[type=checkbox]:checked+label:before {
    color: #000;
}// html
<div id="box">
    <input type



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: