但是在搜索经验的时候,发现很多网友给出的代码有缺失,不适合小白开发
所以,小小整理一番,欢迎指摘 …
操作步骤:
首先 html 设计效果如下:
对应的源码为:
<div class="layui-form-item">
<label class="layui-form-label">主题类型:</label>
<div class="layui-input-inline" style="width: 660px">
<input type="radio" name="level" lay-filter="levelM" value="1" title="一级分类" {$theme.level=="1"?"checked":""}>
<input type="radio" name="level" lay-filter="levelM" value="2" title="二级分类" {$theme.level=="2"?"checked":""}>
<input type="radio" name="level" lay-filter="levelM" value="3" title="三级分类" {$theme.level=="3"?"checked":""}>
</div>
</div>