<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> <title></title> <script src="js/mui.min.js"></script> <link href="css/mui.min.css" rel="stylesheet" /> <script type="text/javascript" charset="utf-8"> mui.init(); </script> </head> <body> <header class="mui-bar mui-bar-nav"> <!--顶部导航栏-带返回键--> <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> <h1 class="mui-title">测试属性checkbox</h1> </header> <div class="mui-content"> <div class="mui-input-row mui-checkbox"> <label>吃鸡</label> <input name="checkbox1" value="吃鸡" type="checkbox"> </div> <div class="mui-input-row mui-checkbox mui-left"><!--mui-left表示复选框在左侧--> <label>王者</label> <input name="checkbox1" value="王者" type="checkbox"> </div> <div class="mui-input-row mui-radio mui-left"><!--mui-radio单选框--> <label>搬砖</label> <input name="checkbox1" value="搬砖" type="radio"><!--注意单选框的name必须一致,表示是一个组内的选项--> </div> </div> <script type="text/javascript"> </script> </body> </html>