input radio checkbox选中的c's's

<form action="">
            <div class="brand">
                    <span>商标知识产权集团商标公证1</span>
                    <input type="radio" name="brand" value="man" id="man" >
                    <label for="man"></label>
            </div>
            <div class="brand ">
                    <span>商标知识产权集团商标公证2</span>
                    <input type="radio" name="brand" value="female" id="female" >
                    <label for="female"></label>
            </div>
            <div class="brand">
                    <span>商标知识产权集团商标公证3</span>
                    <input type="radio" name="brand" value="do" id="do" >
                    <label for="do"></label>
            </div>
            <div class="confirm-search"">
                    <button type="submit">查询</button>
            </div>
    </form>
.brand{
        padding: 0 .24rem;
        height: .9rem;
        background: #fff;
        line-height: .9rem;
        font-size: .28rem;
        border-bottom:0.01rem solid #f2f2f2;
        position: relative;
        color:rgb(108,108,108);
    }
    .brand label{
        position: absolute;
            width: .4rem;
            height: .4rem;
            right: .24rem;
            top: 50%;
            line-height: .9rem;
            margin-top: -.2rem;     
    }
    .brand input[type="radio"]{
      display: none;
    }
    .brand input[type='radio']+label:before{
        content: '';
        display: inline-block;
        position: absolute;
        width: .4rem;
        height: .4rem;
        top: 50%;
        line-height: .9rem;
        margin-top: -.2rem;     
        background: url(../images/circle.png) no-repeat;
        background-size: 0.4rem 0.4rem;
    }
    .brand input[type='radio']:checked+label:before{
      background: url('../images/chose.png');
      background-position: center center;
    }

 

转载于:https://www.cnblogs.com/MR-cui/p/9663187.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值