• checkbox/radio 样式修改


    只改颜色

    input[type=radio],input[type=checkbox] {
    display: inline-block;
    vertical-align: middle;
    20px;
    height: 20px;
    margin-left: 5px;
    -webkit-appearance: none;
    background-color: transparent;
    border: 0;
    outline: 0 !important;
    line-height: 20px;
    color: #d8d8d8;
    }
    input[type=radio]:after {
    content: "";
    display:block;
    20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 14px;
    font-size: 16px;
    color: #fff;
    border: 2px solid #ddd;
    background-color: #fff;
    box-sizing:border-box;
    }

    input[type=checkbox]:after {
    content: "";
    display:block;
    14px;
    height: 14px;
    border-radius: 7px;
    text-align: center;
    line-height: 14px;
    font-size: 16px;
    color: #fff;
    border: 2px solid #ddd;
    background-color: #fff;
    box-sizing:border-box;
    }
    input[type=checkbox]:checked:after {
    border: 2px solid #ddd;
    background-color: #EF8120;
    }

    input[type=radio]:checked:after {
    content: "L";
    transform:matrix(-0.766044,-0.642788,-0.642788,0.766044,0,0);
    -webkit-transform:matrix(-0.766044,-0.642788,-0.642788,0.766044,0,0);
    border-color: #37AF6E;
    background-color: #37AF6E;
    }

    加背景图

    input[type=radio],input[type=checkbox] {
    display: inline-block;
    vertical-align: middle;
    15px;
    height: 15px;
    margin-left: 5px;
    -webkit-appearance: none;
    background-color: transparent;
    border: 0;
    outline: 0 !important;
    line-height: 20px;
    color: #d8d8d8;
    border-radius: 4px;
    overflow: hidden;
    }
    input[type=radio]:after {
    content: "";
    display:block;
    15px;
    height: 15px;
    border-radius: 4px;
    text-align: center;
    line-height: 14px;
    font-size: 16px;
    color: #fff;
    border: 1px solid #3B3B41;
    background: #343446;
    box-sizing:border-box;
    border-radius: 50%;
    overflow: hidden;
    }

    input[type=checkbox]:after {
    content: "";
    display:block;
    15px;
    height: 15px;
    border-radius: 7px;
    text-align: center;
    line-height: 14px;
    font-size: 16px;
    color: #fff;
    border: 1px solid #3B3B41;
    background: #343446;
    box-sizing:border-box;
    border-radius: 4px;
    overflow: hidden;background-image: url(__IMG__/xuanzhong.png);
    }
    input[type=checkbox]:checked:after {


    border: 1px solid #3B3B41;
    background: #343446;
    background-image: url(__IMG__/xuanzhong.png);
    background-size: 100% 100%;
    border-radius: 4px;

    }

  • 相关阅读:
    LCT 动态树 模板
    [HNOI2010] 物品调度 fsk
    [HNOI2010] 矩阵 matrix
    [HNOI2010] 平面图判定 planar
    [HNOI2010] 公交线路 bus
    [HNOI2017]抛硬币
    [HNOI2010] 弹飞绵羊 bounce
    [HNOI2010] 合唱队 chorus
    [HNOI2017]礼物
    [HNOI2017]大佬
  • 原文地址:https://www.cnblogs.com/jyc226/p/7561070.html
Copyright © 2020-2023  润新知