<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <!-- bootstrap css引入 --> <link rel="stylesheet" href="css/bootstrap.min.css"> <!-- jquery js引入 --> <script src="js/jquery.min.js"></script> <!-- bootstrap js引入 --> <script src="js/bootstrap.bundle.min.js"></script> </head> <body> <div class="container"> <form> <div class="form-group"> <label for="exampleInputEmail1">电子邮件地址</label> <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp"> <small id="emailHelp" class="form-text text-muted">我们永远不会和别人分享你的电子邮件。</small> </div> <div class="form-group"> <label for="exampleInputPassword1">密码</label> <input type="password" class="form-control" id="exampleInputPassword1"> </div> <div class="form-group form-check"> <input type="checkbox" class="form-check-input" id="exampleCheck1"> <label class="form-check-label" for="exampleCheck1">记住我</label> </div> <button class="btn btn-primary" id="login">登录</button> </form> </div> <!-- 引入自定义js,写在最后的原因是希望等页面所有元素加载完之后再执行 --> <script src="js/login.js"></script> </body> </html>