|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>这是一个测试flask的前端网页</title>
- <style>
- label { float: left; width: 10em; margin-right: 1em; text-align: right; }
- #logtit {margin-left:180px;}
- #logclick {margin-left:180px;}
- #logout {margin-left:30px;}
- div{ border:1px solid blue}
- #divlogin {margin-top:250px ;width:500px;margin-left:400px;height:180px}
- </style>
- </head>
- <body>
- <div id ="divlogin">
- <h3 id="logtit" >用户登录界面</h3>
-
- <form method="POST">
- <label>用户名:</label><input type="text" name="username" value=""><br>
- <label>密   码:</label><input type="password" name="password" value=""><br><br>
- <input id="logclick" type="submit" value="登录">
- <input id="logout" type="submit" value="退出">
- </form>
- {% if name %}
- <span>{{uname}} {{string}}</span>
- {% endif %}
- {% if name2 %}
- <span>{{uname}} {{string2}}</span>
- {% endif %}
- </div>
- <script>
- onload=function(){
- document.getElementsByName("username")[0].focus()
- }
- </script>
- </body>
- </html>
复制代码 |
|