Correction status:Uncorrected
Teacher's comments:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- 1. 导入bootstrap的css文档--> <link rel="stylesheet" href="../0528/static/css/bootstrap.css"> <title>Title</title> </head> <body> <!--表格--> <div class="container"> <div class="row"> <div class="col-md-8 col-md-offset2"> <table class="table table-bordered table-hover"> <caption class="h3 text-center ">我的表格</caption> <thead> <tr class="bg-info text-center "> <td>序号</td> <td>商品名称</td> <td>数量</td> <td>单价</td> <td>金额</td> </tr> </thead> <tbody> <tr class="bg-warning"> <td class="text-center">1</td> <td>华为P30</td> <td class="text-center">1</td> <td class="text-center">4999</td> <td class="text-center">4999</td> </tr> <tr class="bg-warning"> <td class="text-center">2</td> <td></td> <td></td> <td></td> <td></td> </tr> <tr class="bg-warning"> <td class="text-center">3</td> <td></td> <td class="text-center"></td> <td class="text-center"></td> <td class="text-center"></td> </tr> <tr class="bg-warning"> <td class="text-center">4</td> <td></td> <td></td> <td></td> <td></td> </tr> <tr class="bg-warning"> <td class="text-center">5</td> <td></td> <td></td> <td></td> <td></td> </tr> </tbody> </table> </div> </div> </div> <hr style="color:red"> <!--表单--> <div class="container"> <div class="row"> <div class="col-md-6"> <h3 class="text-center">表单</h3> <form> <div class="form-group"> <label for="exampleInputEmail1">Email address</label> <input type="email" class="form-control" id="exampleInputEmail1" placeholder="Email"> </div> <div class="form-group"> <label for="exampleInputPassword1">Password</label> <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password"> </div> <div class="form-group"> <label for="exampleInputFile">File input</label> <input type="file" id="exampleInputFile"> <p class="help-block">Example block-level help text here.</p> </div> <div class="checkbox"> <label> <input type="checkbox"> Check me out </label> </div> <button type="submit" class="btn btn-danger">提交</button> </form> <hr> </div> </div> </div> <!--2. 导入支持文件: jquery.js--> <script src="../0528/static/js/jquery-3.4.1.js"></script> <!--3. 导入bootstrap的js文件--> <script src="../0528/static/js/bootstrap.js"></script> </body> </html>
点击 "运行实例" 按钮查看在线实例