测试平台开发-前端开发

教程地址

模板技术 - 霍格沃兹测试开发学社-教程网站 (ceshiren.com)

202041412102甘胜华
login.html:

{% include 'base.html' %}

<!--<!DOCTYPE html>-->
<!--<html lang="en">-->
<!--<head>-->
<!--    <meta charset="UTF-8">-->
<!--    <title>登陆页面</title>-->
<!--</head>-->
<body>
<!--<form action="/user/log" method="post">-->
<!--    <input type="text" name="username" placeholder="请输入用户名">-->
<!--    <input type="password" name="password" placeholder="请输入密码">-->
<!--    <input type="submit" value="登录">-->
<!--</form>-->

    <div class="container">

      <form class="form-signin" action="/user/log" method="post" style="max-width: 330px; padding: 15px; margin: 0 auto;">
        <h2 class="form-signin-heading">Please sign in</h2>
        <label for="inputEmail" class="sr-only">Username</label>
        <input type="text" id="inputEmail" class="form-control" placeholder="Username" required="" autofocus="" name="username">
        <label for="inputPassword" class="sr-only">Password</label>
        <input type="password" id="inputPassword" class="form-control" placeholder="Password" required="" name="password">
        <div class="checkbox">
          <label>
            <input type="checkbox" value="remember-me"> Remember me
          </label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
      </form>

    </div> <!-- /container -->


<!--    &lt;!&ndash; IE10 viewport hack for Surface/desktop Windows 8 bug &ndash;&gt;-->
<!--    <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>-->

</body>
<!--</html>-->

usecase.html:

{% include 'base.html' %}

<!--<!DOCTYPE html>-->
<!--<html lang="en">-->
<!--<head>-->
<!--    <meta charset="UTF-8">-->
<!--</head>-->
<body>
    <div class="container" style="width: 600px;">
        <table class="table">
            <thead>
                <tr>
                    <th>id</th>
                    <th>name</th>
                    <th>desc</th>
                </tr>
            </thead>
            <tbody>
                {% for data in datas %}
                <tr class="{{data.class}}">
                    <td>{{data.id}}</td>
                    <td>{{data.name}}</td>
                    <td>{{data.desc}}</td>
                </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
</body>
<!--</html>-->

image

202041412208 蒋冠岳
login.html

{% include 'base.html' %}

<style>

body {
<!--    background: url(../img/carback.jpg) no-repeat;-->
    background-size:cover;font-size: 15px;
}
/*给表单的边框设置大小,颜色和不透明度*/
.form {
    background: rgba(255,255,255,0.9);
    width:400px;margin:50px auto;
}
/*设置字体和大小*/
label {
    font-family: Arial;font-size: 15px
}
/*当输入正确时,给输入框设置浅绿色*/
input.form-control:valid{
    background-color: mintcream;
}
/*当输入正确时,给输入框设置浅红色*/
input.form-control:invalid{
    background-color: #ffeeed;
}
/*设置图标为行内元素,并设置大小和颜色*/
.fa{
    display: inline-block;
    top: 27px;
    left: 6px;
    position: relative;
    color: #575757;
}
/*为几个输入框设置padding,防止和图标重合*/
input[type="text"],input[type="password"],input[type="email"]{
    padding-left:26px;
}
.form-title{
    padding-top:20px;
}
#button{
    padding-bottom: 50px;
}


</style>

<body>
<div class="container">
    <div class="form row">
        <form class="form-horizontal col-sm-offset-3 col-md-offset-3" action="/user/login"  method="post">
            <h3 class="form-title">登录</h3>
            <div class="col-sm-9 col-md-9">
                <div class="form-group">
                    <!--        用户名图标和用户名输入框            -->
                    <i class="fa fa-user" aria-hidden="true"></i>
                    <input class="form-control" type="text" name="username" id="username" placeholder="请输入用户名" required autofocus>
                </div>
                    <!--        密码图标和密码输入框                -->
                <div class="form-group">
                    <i class="fa fa-key" aria-hidden="true"></i>
                    <input class="form-control " type="password" name="password" id="password" placeholder="请输入密码" required>
                </div>
                    <!--        用超链接跳转到注册页面               -->
                <div class="form-group">
                    <br>
                    <a href="/user/registerPage">没有账号?立即注册</a>
                </div>
                    <!--         登录按钮           -->
                <div class="form-group">
                    <input type="submit" value="登录" class="btn btn-success pull-right">
                </div>

            </div>
        </form>
    </div>
</div>
</body>

register.html

{% include 'base.html' %}

<style>
  /*设置背景图片*/
body {
<!--    background: url(../img/carback.jpg) no-repeat;-->
    background-size:cover;font-size: 15px;
}
/*给表单的边框设置大小,颜色和不透明度*/
.form {
    background: rgba(255,255,255,0.9);
    width:400px;margin:50px auto;
}
/*设置字体和大小*/
label {
    font-family: Arial;font-size: 15px
}
/*当输入正确时,给输入框设置浅绿色*/
input.form-control:valid{
    background-color: mintcream;
}
/*当输入正确时,给输入框设置浅红色*/
input.form-control:invalid{
    background-color: #ffeeed;
}
/*设置图标为行内元素,并设置大小和颜色*/
.fa{
    display: inline-block;
    top: 27px;
    left: 6px;
    position: relative;
    color: #575757;
}
/*为几个输入框设置padding,防止和图标重合*/
input[type="text"],input[type="password"],input[type="email"]{
    padding-left:26px;
}
.form-title{
    padding-top:20px;
}
#button{
    padding-bottom: 50px;
}
</style>

<body>
<div class="container">
    <div class="form row">
        <form class="form-horizontal col-sm-offset col-md-offset-3" action="/user/register" method="post">
            <h3 class="form-title">注册</h3>
                <div class="col-sm-9 col-md-9">
                    <div class="form-group">
<!--        用户名图标和用户名输入框            -->
                        <i class="fa fa-user" aria-hidden="true"></i>
                        <input class="form-control required" type="text" name="username" id="username" placeholder="请输入用户名" required>
                    </div>

<!--        密码图标和密码输入框                -->
                    <div class="form-group">
                        <i class="fa fa-key" aria-hidden="true"></i>
                        <input class="form-control required" type="password" name="password" id="password" placeholder="请输入密码" required>
                    </div>
<!--          确认密码              -->
                    <div class="form-group">
                        <i class="fa fa-check-circle-o" aria-hidden="true"></i>
                        <input class="form-control required" type="password" name="resetpw" id="resetpw" placeholder="请确认密码" required>
                    </div>
<!--&lt;!&ndash;        邮箱                &ndash;&gt;-->
<!--                    <div class="form-group">-->
<!--                        <i class="fa fa-envelope" aria-hidden="true"></i>-->
<!--                        <input class="form-control required" type="email" name="email" id="email" placeholder="请输入邮箱" required>-->
<!--                    </div>-->

<!--                    <div class="form-group">-->
<!--                    </div>-->

<!--注册按钮-->
                    <div class="form-group">
                        <input type="submit" value="注册" class="btn btn-success pull-right">
                        <input type="button" onclick="/" class="btn btn-info pull-left" id="back_btn" value="返回"/>
                    </div>
                </div>
        </form>
    </div>
</div>
</body>

202041404216 聂振枫
login_form.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登陆页面</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
    <style>
        .loginForm {

            /*边框高度*/
            height: 350px;
            /*边框宽度*/
            width: 500px;
            /*边框颜色*/
            border: #4d4d4d solid 1px;
            /*边框圆角*/
            border-radius: 4px;
            /*阴影 水平方向,竖直方向,模糊距离*/
            box-shadow: 5px 5px 5px #4d4d4d;
            /*上边界距离*/
            margin-top: 300px;
        }
    </style>
</head>
<body>
<div class = "loginForm">
<form>
  <div class="form-group">
    <label for="exampleInputEmail1">用户名</label>
    <input type="text" class="form-control" id="exampleInputEmail1" placeholder="Username" name="username">
  </div>
  <div class="form-group">
    <label for="exampleInputPassword1">密码</label>
    <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password" name="password">
  </div>

  <button type="submit" class="btn btn-default">登录</button>
</form>
</div>

</body>
</html>

效果:
image

姓名:胡福生 学号:202041404204
login.html

{% include 'base.html' %}
<html lang="en">
<style>
    body {
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: #eee;
}

.form-signin {
  max-width: 330px;
  padding: 15px;
  margin: 0 auto;
}
.form-signin .form-signin-heading,
.form-signin .checkbox {
  margin-bottom: 10px;
}
.form-signin .checkbox {
  font-weight: 400;
}
.form-signin .form-control {
  position: relative;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  height: auto;
  padding: 10px;
  font-size: 16px;
}
.form-signin .form-control:focus {
  z-index: 2;
}
.form-signin input[type="text"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
</style>
<body>
 <div class="container">

      <form class="form-signin">
        <h2 class="form-signin-heading">Please sign in</h2>
        <label for="inputUsername" class="sr-only">Username</label>
        <input type="text" id="inputUsername" class="form-control" placeholder="Username" required autofocus>
        <label for="inputPassword" class="sr-only">Password</label>
        <input type="password" id="inputPassword" class="form-control" placeholder="Password" required>
        <div class="checkbox">
          <label>
            <input type="checkbox" value="remember-me"> Remember me
          </label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
      </form>

    </div> <!-- /container -->

</body>
</html>

register.html

{% include 'base.html' %}
<html lang="en">
<style>
    body {
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: #eee;
}

.form-register {
  max-width: 330px;
  padding: 15px;
  margin: 0 auto;
}
.form-register .form-register-heading,{
  margin-bottom: 10px;
}

.form-register .form-control {
  position: relative;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  height: auto;
  padding: 10px;
  font-size: 16px;
}
.form-register .form-control:focus {
  z-index: 2;
}
.form-register input[type="text"] {
  margin-bottom: 10px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.form-register input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.form-register input[type="email"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

</style>
<body>
 <div class="container">

      <form class="form-register">
        <h2 class="form-register-heading">Please Register</h2>
          <label for="inputUsername" class="sr-only">Username</label>
        <input type="text" id="inputUsername" class="form-control" placeholder="Username" required autofocus>
          <label for="inputPassword" class="sr-only">Password</label>
        <input type="password" id="inputPassword" class="form-control" placeholder="Password" required>
          <label for="inputPhone" class="sr-only">Phone</label>
        <input type="text" id="inputPhone" class="form-control" placeholder="Phone" required autofocus>
          <label for="inputEmail" class="sr-only">Email</label>
        <input type="email" id="inputEmail" class="form-control" placeholder="Email" required>
        <button class="btn btn-lg btn-primary btn-block" type="submit">Register</button>
      </form>

    </div> <!-- /container -->

</body>
</html>


姓名:李升升
学号:202041404115
login.html


<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>登录</title>

<link rel="stylesheet" href="static/plugins/bootstrap-3.4.1/css/bootstrap.css">

<style>

.account{

width:400px;

border:1px solid #dddddd;

border-radius:100px;

box-shadow:5px 5px 20px #aaa;

margin-left:auto;

margin-right:auto;

margin-top:200px;

padding:50px;

}

.account h1{

text-align:center;

}

</style>

</head>

<body>

<div class="account">

<h1>用户登录</h1>

<form>

<div class="form-group">

<label for="exampleInputEmail1">用户名</label>

<input type="email" class="form-control" id="exampleInputEmail1" placeholder="请输入用户名">

</div>

<div class="form-group">

<label for="exampleInputPassword1">密码</label>

<input type="password" class="form-control" id="exampleInputPassword1" placeholder="请输入密码">

</div>

<button type="submit" class="btn btn-primary">登录</button>

</form>

</div>

<div style="height:1000px;"></div>

</body>

</html>

login.html

{% include 'base.html' %}

<body>

<div class="container">

    <form class="form-signin" action="/user/login" method="post" style="width:330px ;padding: 15px; margin: 0 auto">
        <h2 class="form-signin-heading">请登录</h2>
        <label for="inputEmail" class="sr-only">name</label>
        <input type="text" id="inputEmail" class="form-control" name="username" placeholder="username" required=""
               autofocus="">
        <label for="inputPassword" class="sr-only">password</label>
        <input type="password" id="inputPassword" class="form-control" name="password" placeholder="password"
               required="">
        <div class="checkbox">
            <label>
                <input type="checkbox" value="remember-me"> 记住我
            </label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
    </form>

</div>
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>


</body>


testcases.html

{% include 'base.html' %}
<body>
<table id="content"class="table table-bordered" style="width:330px ;padding: 15px; margin: 0 auto">
    {% block content %}
    <thead>
    <tr>
        <th>id</th>
        <th>用例名称</th>
        <th>用例描述</th>
    </tr>
    </thead>
    <tbody>
    {% for case in cases %}
    <tr>
        <td>{{case.id}}</td>
        <td>{{case.name}}</td>
        <td>{{case.desc}}</td>
    </tr>
    </tbody>
    {% endfor %}
    {% endblock %}
</table>
<div id="footer">
    {% block footer %} &copy; Copyright 2023 by
    <a href="https://ceshiren.com">202041412126</a>. {% endblock %}
</div>
</body>


202041404101 曹岚
image

{% include ‘base.html’ %}

<div class="container">

  <form class="form-signin" action="/user/log" method="post" style="max-width: 330px; padding: 15px; margin: 0 auto;">
    <h2 class="form-signin-heading">Please sign in</h2>
    <label for="inputEmail" class="sr-only">Username</label>
    <input type="text" id="inputEmail" class="form-control" placeholder="Username" required="" autofocus="" name="username">
    <label for="inputPassword" class="sr-only">Password</label>
    <input type="password" id="inputPassword" class="form-control" placeholder="Password" required="" name="password">
    <div class="checkbox">
      <label>
        <input type="checkbox" value="remember-me"> Remember me
      </label>
    </div>
    <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
  </form>

</div> <!-- /container -->

202041412220 区世钧


202041404202陈杰选
bootstrap_index.html

{% include 'base.html' %}
<style>
body {
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: #eee;
}

.form-signin {
    max-width: 330px;
    padding: 15px;
    margin: 0 auto;
}
.form-signin .form-signin-heading,
.form-signin .checkbox {
    margin-bottom: 10px;
}
.form-signin .checkbox {
    font-weight: 400;
}
.form-signin .form-control {
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    height: auto;
    padding: 10px;
    font-size: 16px;
}
.form-signin .form-control:focus {
    z-index: 2;
}
.form-signin input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
</style>

<body>
    <div class="container">
        <form class="form-signin">
            <h2 class="form-signin-heading">Please sign in</h2>
                <label for="inputEmail" class="sr-only">Email address</label>
                <input type="email" id="inputEmail" class="form-control" placeholder="Email address" required autofocus>
                <label for="inputPassword" class="sr-only">Password</label>
                <input type="password" id="inputPassword" class="form-control" placeholder="Password" required>
            <div class="checkbox">
                <label>
                    <input type="checkbox" value="remember-me"> Remember me
                </label>
            </div>
            <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
        </form>
    </div>
</body>


202041404214刘均豪

Hogwarts .login-content { width: 900px; height: 500px; background-color: #fffcf7; margin: auto; }

.login-header h2{
font-size: 30px;
text-align: center;
padding: 30px;
}

form {
text-align: center;
font-size: 20px;
padding: 80px;
}

#pwd {
margin: 30px auto;
}

.btn-login {
font-size: 20px;
padding:0 20px;
margin-bottom: 30px;
}

登录

用户名:
 密码:  

image

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登陆</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
    <style>
        .login-form {
            height: 400px;
            width: 400px;
            margin-top: 400px;
        }
    </style>
</head>
<body>
<div class = "login-form">
    <form>
        <div class="form-group">
            <label for="username">账号</label>
            <input type="text" class="form-control" id="username" placeholder="Username" name="username">
        </div>
        <div class="form-group">
            <label for="password">密码</label>
            <input type="password" class="form-control" id="password" placeholder="Password" name="password">
        </div>
        <button type="submit" class="btn btn-default">登录</button>
    </form>
</div>
</body>
</html>

姓名:王冠毅 学号:202041412222

<div id="main">
  <div id="bg" ref="main_bg"></div>
  <div id="main-login" ref="main_login">
    <div id="main-login-switch">
      <ul>
        <li :class="{ border_bottom: isLogin }"
          @click="isLogin != true ? isLogin = !isLogin : isLogin; register_input.register_account = ''; register_input.register_pw = ''; inputAddListenerLogin();">
          登录</li>
        <li :class="{ border_bottom: !isLogin }"
          @click="isLogin != false ? isLogin = !isLogin : isLogin; login_input.login_account = ''; login_input.login_pw = ''; inputAddEventListenerRegister();">
          注册</li>
      </ul>
    </div>
    <div v-if="isLogin" class="main_input_div">
      <input ref="input_account" class="main_input" type="text" autocomplete="off" name="id"
        v-model="login_input.login_account">
      <div ref="id_holder" class="id_holder">账号</div>
      <input ref="input_password" class="main_input" type="password" autocomplete="off" name="pw"
        v-model="login_input.login_pw">
      <div ref="password_holder" class="password_holder">密码</div>
      <div class="main_btn" :class="{ disabled: !isAllow_login }" ref="btn_login">{{ btn_login }}</div>
    </div>
    <div v-else class="main_input_div">
      <input ref="register_account" class="main_input" type="text" autocomplete="off" name="name"
        v-model="register_input.register_account">
      <div ref="id_holder" class="id_holder">账号</div>
      <input ref="register_password" class="main_input" type="password" autocomplete="off" name="pw"
        v-model="register_input.register_pw" >
      <div ref="password_holder" class="password_holder">密码</div>
      <div style="height: 50px;display: flex;align-items: center;justify-content: center;">
        <input type="checkbox" v-model="isTeacher">&nbsp;&nbsp;<span>我是老师</span>
      </div>
      <div class="main_btn" :class="{ disabled: !isAllow_register }"
        style="background-image: linear-gradient(-60deg,rgb(175, 154, 255),rgb(232, 183, 255));" ref="btn_register">
        {{ btn_register }}</div>
    </div>
    <div style="height: 80px;display: flex;align-items: center;justify-content: center;">
      <input type="checkbox" v-model="isSelected">&nbsp;&nbsp;<span>选中即代表同意<span
          style="cursor:pointer;color:rgb(232, 183, 255);" @click="open">用户协议</span></span>
    </div>
    <div class>
         <a class="forgetPass" href="/FotgetPass" backgroud-color:blue>忘记密码</a>
    </div>
  </div>
</div>
<div id="footer">

* { padding: 0; margin: 0; } body { height: 100vh; -webkit-tap-highlight-color: transparent; } ul { margin: 0; } li { list-style: none; margin: 0 15px 0 0; } input { outline: none; padding-left: 10px; } #footer { height: 5vh; display: flex; justify-content: center; align-items: center; } .disabled { cursor: not-allowed !important; } .main_input_div { display: flex; justify-content: center; flex-direction: column; align-items: center; } .main_input { display: block; height: 50px; width: 300px; font-size: 20px; border-top: none; border-left: none; border-right: none; border-bottom: 2px solid rgb(94, 94, 94); transition: border .3s ease; margin-top: 10%; background-color: transparent; } .main_input:focus+.id_holder { top: 25% !important; color: rgb(105, 105, 105); } .main_input:focus+.password_holder { top: 41% !important; color: rgb(105, 105, 105); } .main_input:nth-child(2) { margin-top: 15%; } .main_input:focus { border-bottom: 2px solid rgba(232, 183, 255, 0.8); } .id_holder { position: absolute; top: 30%; right: 20%; transition: top .3s ease, color .3s ease; color: #000; } .password_holder { position: absolute; top: 47.5%; right: 20%; transition: top .3s ease, color .3s ease; color: #000; } .main_btn { height: 30px; width: 300px; margin-top: 15%; color: #000; background-image: linear-gradient(-60deg, rgb(232, 183, 255), rgb(175, 154, 255)); display: flex; justify-content: center; align-items: center; border-radius: 5px; margin-left: 4px; font-size: larger; cursor: pointer; } #main-login-switch { padding-left: 20%; height: 20%; } #main-login-switch ul { display: flex; transform: translate(0, 70%); } #main-login-switch li { display: inline-block; font-size: 20px; padding: 5px; border-bottom: 2px solid rgb(255, 255, 255); transition: border .3s ease; cursor: pointer; } .border_bottom { border-bottom: 2px solid rgb(0, 0, 0) !important; } #app { font-family: Avenir, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-align: center; color: #2c3e50; } #head { position: relative; height: 10vh; user-select: none; } #main { position: relative; width: 100%; height: 700px; } #main-login { position: absolute; top: 10%; left: 10vw; height: 80%; width: 450px; background-color: transparent; border: 1px solid #fff; border-radius: 5px; transition: border .3s ease, box-shadow .3s ease, background-color .3s ease; backdrop-filter: blur(7px); } #main-login input { background-color: transparent; } .main-login-hover { border: 1px solid rgb(232, 183, 255) !important; box-shadow: 1px 0px 10px 3px rgba(232, 183, 255, 0.6) !important; background-color: #fff !important; } #bg { height: 100%; width: 100%; position: absolute; background: url('../assets/bg.png') left top no-repeat; transition: filter .3s ease; } .bg-mask { filter: blur(7px); } @media screen and (max-width:500px) { #main-login { position: unset; margin: 0 auto; width: 95%; transform: translate(0, 10%); } #main-login-switch { padding-left: 10%; } #main_input_div { padding-left: 10%; } #main { height: 600px; } } .forgetPass{ color:aqua }

202041404213 刘建升

登陆页面 .loginForm {
        /*边框高度*/
        height: 350px;
        /*边框宽度*/
        width: 500px;
        /*边框颜色*/
        border: #4d4d4d solid 1px;
        /*边框圆角*/
        border-radius: 4px;
        /*阴影 水平方向,竖直方向,模糊距离*/
        box-shadow: 5px 5px 5px #4d4d4d;
        /*上边界距离*/
        margin-top: 300px;
    }
</style>
用户名
密码

登录

![1|245x171](upload://7EYKFyR96KAYf0dGab6NdLTKqV1.png) ![2|334x244](upload://jQqTmCyDSJgk8ZWu8UPCHtGwuBs.png)

202041413221 叶磊
login.html

{% include 'base.html' %}

<body>

<div class="container">

    <form class="form-signin" action="/user/login" method="post" style="width:330px ;padding: 15px; margin: 0 auto">
        <h2 class="form-signin-heading">请登录</h2>
        <label for="inputEmail" class="sr-only">name</label>
        <input type="text" id="inputEmail" class="form-control" name="username" placeholder="username" required=""
               autofocus="">
        <label for="inputPassword" class="sr-only">password</label>
        <input type="password" id="inputPassword" class="form-control" name="password" placeholder="password"
               required="">
        <div class="checkbox">
            <label>
                <input type="checkbox" value="remember-me"> 记住我
            </label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
    </form>

</div>
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>


</body>

image

201941412218 魏峰

学号:202041404110 姓名:胡鑫
login.html

{% include 'base.html' %}

<body>

<div class="container">

    <form class="form-signin" action="/user/login" method="post" style="width:330px ;padding: 15px; margin: 0 auto">
        <h2 class="form-signin-heading">请登录</h2>
        <label for="inputEmail" class="sr-only">name</label>
        <input type="text" id="inputEmail" class="form-control" name="username" placeholder="username" required=""
               autofocus="">
        <label for="inputPassword" class="sr-only">password</label>
        <input type="password" id="inputPassword" class="form-control" name="password" placeholder="password"
               required="">
        <div class="checkbox">
            <label>
                <input type="checkbox" value="remember-me"> 记住我
            </label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
    </form>

</div>
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>


</body>

image

202041404218吴宏杰

Hogwarts .login-content { width: 900px; height: 500px; background-color: #fffcf7; margin: auto; }

.login-header h2{
font-size: 30px;
text-align: center;
padding: 30px;
}

form {
text-align: center;
font-size: 20px;
padding: 80px;
}

#pwd {
margin: 30px auto;
}

.btn-login {
font-size: 20px;
padding:0 20px;
margin-bottom: 30px;
}

登录

用户名:
密码:
image