note:在html <input> 标签类中的checkbox实现单选效果。 在最近的开发项目中,客户要求使用小方格子实现“单选”功能,显然圆点的radio被out了,只能选择chckbox的方块样式,也在网上搜过,可能有点儿脑残,没有找到。 废话不多说直接上代码: |
chckbox 实现单选效果(html)
最新推荐文章于 2022-12-21 08:59:47 发布
note:在html <input> 标签类中的checkbox实现单选效果。 在最近的开发项目中,客户要求使用小方格子实现“单选”功能,显然圆点的radio被out了,只能选择chckbox的方块样式,也在网上搜过,可能有点儿脑残,没有找到。 废话不多说直接上代码: |