BootStrap 表单组
1 <form> 2 <div class="form-group"> 3 <label for="exampleInputEmail1">Email address</label> 4 <input type="email" class="form-control" id="exampleInputEmail1" placeholder="Enter email"> 5 </div> 6 <div class="form-group"> 7 <label for="exampleInputPassword1">Password</label> 8 <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password"> 9 </div> 10 <div class="form-group"> 11 <label for="exampleInputFile">File input</label> 12 <input type="file" id="exampleInputFile"> 13 <p class="help-block">Example block-level help text here.</p> 14 </div> 15 <div class="checkbox"> 16 <label> 17 <input type="checkbox"> Check me out 18 </label> 19 </div> 20 <button type="submit" class="btn btn-default">Submit</button> 21 </form>
以上代码效果图如下:


浙公网安备 33010602011771号