zoukankan      html  css  js  c++  java
  • 选中与未选中的样式改变

    Html布局
    <div class="check">
    <input type="checkbox" v-model="agreeCheck" />
    我已阅读并同意
    </div>
    css样式
    .check {
    450px;
    height: 33px;
    line-height: 33px;
    font-family: PingFang-SC-Regular;
    font-size: 24px;
    padding-top: 40px;
    padding-left: 40px;
    color: #694421;
    input {
    outline: 0;
    -webkit-appearance: none;
    position: relative;
    24px;
    height: 24px;
    margin-right: 10px;
    transform: translateY(1.5px);
    &::after {
    content: "";
    display: block;
    100%;
    height: 100%;
    background-image: url(../../../../assert/wei.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: transparent;
    }
    &:checked {
    background-image: url(../../../../assert/gou.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: transparent;
    }
    }
    a {
    color: #694421;
    }
    }
  • 相关阅读:
    1703技术笔录
    技术开发感想
    1701技术随笔
    12月份技术随笔
    光照效果函数
    冰冻效果
    反色效果函数
    哈哈镜效果
    黑白效果函数
    羽化效果
  • 原文地址:https://www.cnblogs.com/ray123/p/12188765.html
Copyright © 2011-2022 走看看