zoukankan      html  css  js  c++  java
  • 自定义input[type="checkbox"]样式

    input[type=checkbox] {
    visibility: hidden;
    position: relative;
    }

    input[type=checkbox]:after {
    content: "";
    display: block;
    position: absolute;
    18px;
    height: 18px;
    visibility: visible;
    box-sizing: border-box;
    border-radius: 18px;
    background: #CBCED1;
    }
    input[type=checkbox]:checked::after{
    background: #2882DD;
    }
    input[type=checkbox]:checked::before {
    content: "";
    display: block;
    position: absolute;
    left: 4px;
    top: 4px;
    10px;
    height: 6px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-right-color: transparent;
    -ms-transform: rotate(-60deg);
    -moz-transform: rotate(-60deg);
    -webkit-transform: rotate(-60deg);
    transform: rotate(-45deg);
    visibility: visible;
    z-index: 1;
    box-sizing: border-box;
    }
    input[type=checkbox]:before {
    content: "";
    display: block;
    position: absolute;
    left: 4px;
    top: 4px;
    10px;
    height: 6px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-right-color: transparent;
    -ms-transform: rotate(-60deg);
    -moz-transform: rotate(-60deg);
    -webkit-transform: rotate(-60deg);
    transform: rotate(-45deg);
    visibility: visible;
    z-index: 1;
    box-sizing: border-box;
    }

    
    

    
    
  • 相关阅读:
    Python电影投票系统
    Python打印一个等边三角形
    打印正直角三角形
    MySQL指令
    MySQL安装 8.0.15版本
    局部变量 全局变量
    目录
    格式化输出
    转义字符
    ffmpeg 从内存中读取数据(或将数据输出到内存)
  • 原文地址:https://www.cnblogs.com/mumusen/p/9361298.html
Copyright © 2011-2022 走看看