<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet"type="text/css"href="../static/css/base.css">
<script src="../static/js/base.js"></script>
<base target="_blank" />
</head>
<body background="http://p0.so.qhimgs1.com/t01d2e82c8c8f2be36c.jpg" id="myBody">
<nav class="nav">
<ul>
<li><a href="{{ url_for('index') }}"><img src="../static/images/img1.png">首页</a></li>
<li><a href=""><img src="../static/images/img2.png">下载</a></li>
<li><a href="{{ url_for('login') }}"><img src="../static/images/img3.png">登录</a></li>
<li><a href="{{ url_for('regist') }}"><img src="../static/images/img4.png">注册</a></li>
<img class="on_off" id="on_off" onclick="mySwitch()" src="../static/images/pic_bulbon.gif" width="50px">
<button style="float: right;margin: 5px auto;border-radius: 5px;height: 26px" type="submit">搜索</button>
<input style="float: right;margin: 5px auto;border-radius: 8px;width: 200px;height: 20px;" type="text"name="search" placeholder="输入要搜索的内容">
</ul>
</nav>
<div id="bottom">
<a href="">关于我们</a>
<a href="">意见反馈</a>
<a href="">安全保障</a>
</div>
<div class="copyright">
<p>Copyright © 2017. Created by <a href="#" target="_blank">suxihong</a></p>
</div>
</body>
</html>
.nav ul{
width: 1200;
height:35px;
margin: 5px auto 0px auto;
border: 1px solid yellow;
}
.nav ul li{
float: left;
}
.nav ul li a{
display: block;
width: 80px;
height: 28px;
margin: 3px 35px;
font-size: 12px;
text-align: center;
text-decoration: none;
line-height: 28px;
color: grey;
background-color:aliceblue;
}
.nav ul li a:hover{
width: 78px;
height: 26px;
line-height: 28px;
border: 1px solid grey;
background:pink;
}
#on_off{
float: right;
margin: 5px;
}
.nav img{
float: left;
height: 25px;
width:25px;
}
#bottom{
position:fixed;
bottom:50px;
left:600px;
}
#bottom a{
font-size: 12px;
color: black;
text-decoration: none;
}
.copyright {
position:fixed;
bottom:0;
left:575px;
}
.copyright p, .copyright a {
color: black;
font-size: 12px;
text-decoration: none;
transition: color 0.3s ease-out;
}
.copyright p a:hover, .copyright a a:hover {
color: black;
}
function mySwitch()
{
var myele=document.getElementById("on_off");
if(myele.src.match("bulbon"))
{
myele.src="../static/images/pic_bulboff.gif";
document.getElementById("myBody").style.background="gray";
document.getElementById("myBody").style.color="white";
}
else
{
myele.src="../static/images/pic_bulbon.gif";
document.getElementById("myBody").style.background="white";
document.getElementById("myBody").style.color="black";
}
}