checkbox 选中与未选中状态 来自米蒙服务器端渲染项目

编程入门 行业动态 更新时间:2024-10-25 03:31:50

checkbox 选中与未选中状态 来自米蒙<a href=https://www.elefans.com/category/jswz/34/1771251.html style=服务器端渲染项目"/>

checkbox 选中与未选中状态 来自米蒙服务器端渲染项目

1、效果


2、html代码片段

    <div class="pay_style"><h5>请选择支付方式</h5><label class="b-b noflex clearfix relative" for="zfb"><div class="fl"><img src="~static/images/zfb.png" alt=""><span class="m-l-xs">支付宝支付</span></div><div class="fr"><input type="checkbox" hidden checked id="zfb"><i class="z_c"></i></div></label><label class="noflex clearfix relative" for="wx"><div class="fl"><img src="~static/images/wx.png" alt=""><span class="m-l-xs">微信支付</span></div><div class="fr"><input type="checkbox" hidden id="wx"><i class="z_c"></i></div></label><div class="affirm"><van-button @click.native="$router.push('/goods/paySuccess-mi')" type="primary">确认支付</van-button></div></div>

3、css相关代码

.pay_style .noflex{height: 40px;line-height: 40px;display: block;}/*未选中状态的图片*/.pay_style .z_c{position: absolute;width: 12px;height: 12px;right: 0px;top: 15px;background-position: center;background-repeat: no-repeat;background-image: url("../../static/images/no_checked2.png")}/*选中状态的图片*/.pay_style input[type=checkbox]:checked + .z_c{background-image: url("../../static/images/checked2.png");}.pay_style{background: #fff;padding: 5px 10px;}.pay_style h5{font-weight: normal;font-size: 14px; margin-bottom: 5px;}

更多推荐

checkbox 选中与未选中状态 来自米蒙服务器端渲染项目

本文发布于:2024-03-14 20:07:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1737233.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:服务器端   状态   项目   checkbox

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!