• 重置input checked


    <!--
    作者:duke
    时间:2018-10-24
    描述: 重置input 样式
    -->

    <!DOCTYPE HTML>
    <html>

    <head>
    <meta charset="utf-8">
    <title>table</title>
    </head>
    <style>
    input[disabled='disabled'] {
    -webkit-appearance: none;
    padding: 0;
    margin: 0;
    border: 0;
    16px;
    height: 16px;
    padding: 10px 0;
    background: red;
    position: relative;
    margin-left: 300px;
    }

    input[disabled='disabled']:after {
    content: "";
    1px;
    height: 21px;
    position: absolute;
    background: #000;
    transform: rotateZ(41deg);
    left: 8px;
    top: 0;
    }

    input[disabled='disabled']:before {
    content: "";
    1px;
    height: 21px;
    position: absolute;
    background: #000;
    transform: rotateZ(-41deg);
    left: 8px;
    top: 0;
    }
    /*input:checked {

    -webkit-appearance: none;
    outline: none;
    padding: 0;
    margin: 0;
    border: 0;
    16px;
    height: 16px;
    padding: 10px 0;
    background: red;
    position: relative;

    }*/

    input:checked:after {
    content: "";
    position: absolute;
    left: 6px;
    3px;
    height: 11px;
    top: 3px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotateZ(41deg);
    }

    input[type='checkbox'] {
    -webkit-appearance: none;
    outline: none;
    padding: 0;
    margin: 0;
    border: 0;
    16px;
    height: 16px;
    padding: 10px 0;
    background: red;
    position: relative;
    }
    </style>

    <body>

    <input type="checkbox" disabled="disabled" />
    <input type="checkbox" />

    </body>

    </html>

  • 相关阅读:
    macOS 修改键盘重复按键延迟
    stdout 与 stderr 区别
    E. 1-Trees and Queries
    Codeforces Round #615 (Div. 3)
    Codeforces Round 613(div 2)
    Codeforces Edu80
    SPOJ
    快读
    《货车运输》题解--最大生成树&倍增
    倍增思想求lca
  • 原文地址:https://www.cnblogs.com/duke-peng/p/9843357.html
Copyright © 2020-2023  润新知