父模板
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{% block title %}{% endblock %}Victoria</title>
<link href="../static/css/vv.css" rel="stylesheet" type="text/css">
<script src="{{url_for("static",filename="js/change.js")}}"> </script>
{% block head %}{% endblock %}
</head>
<body id="myBody">
<nav class="nav">
<a href="{{ url_for("vi")}}">首页</a>
<a href="">下载</a>
<input type="text" name="search">
<button type="submit">搜索</button>
<a href="{{ url_for("login")}}">登录</a>
<a href="{{ url_for("regist")}}">注册</a>
<img id="on_off" onclick="change()" src="{{ url_for("static",filename="images/on.jpg") }}" width="30px">
</nav>
{% block main %}{% endblock %}
<div class="box">
<a href="" class="nav"><span>关于我们</span></a>
<a href="" class="nav"><span>意见反馈</span></a>
<a href="" class="nav"><span>安全保障</span></a>
</div>
</body>
</html>
{% extends 'base.html' %}
{% block title %}
登录
{% endblock %}
{% block head %}
<link href="{{ url_for("static",filename="css/vv.css") }}" rel="stylesheet" type="text/css">
<script src="{{ url_for("static",filename="js/new.js") }}"></script>
{% endblock %}
{% block main %}
<body bgcolor="#778899" class="div4">
<div class="div1">
<h2 class="title"></h2>
<div class="normal-title">
<a class="div2" href="{{ url_for("templates",filename="vv.html") }}">登录</a>
<b>|</b>
<a class="div2" href="{{ url_for("templates",filename="vv1.html") }}">注册</a>
</div>
<div class="div3">
用户:<input id="username" type="text" placeholder="请输入昵称">
</div>
<div class="div3">
密码:<input id="userpass" type="text" placeholder="请输入密码">
</div>
<div id="error_box"><br></div>
<div class="div3">
<button onclick="myLogin()">Login</button>
</div>
<div class="div2">ByYin</div>
</div>
<br>
</body>
{% endblock %}
</html>
{% extends 'base.html' %}
{% block title %}
注册
{% endblock %}
{% block head %}
<link href="{{url_for("static",filename="css/vv.css") }}" rel="stylesheet" type="text/css">
<script src="{{ url_for("static",filename="js/new.js") }}"></script>
{% endblock %}
{% block main %}
<body bgcolor="#778899" class="div4">
<div class="div1">
<h2 class="title"></h2>
<div class="normal-title">
<a class="div2" href="{{ url_for("templates",filename="vv.html") }}">登录</a>
<b>|</b>
<a class="div2" href="{{ url_for("templates",filename="vv1.html") }}">注册</a>
</div>
<div class="div3">
用户:<input id="newname1" type="text" placeholder="请输入昵称">
</div>
<div class="div3">
密码:<input id="newpass1" type="text" placeholder="请输入密码">
</div>
<div class="div3">
密码:<input id="newpass2" type="text" placeholder="请再次输入密码">
</div>
<div id="error_box"><br></div>
<div class="div3">
<button onclick="myRegister()">Register</button>
</div>
<div class="div2">ByYin</div>
</div>
<br>
</body>
{% endblock %}
</html>