<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
* {
margin: 0;
padding: 0;
}
input {
box-shadow: none;
border: none;
outline: none;
}
.href {
position: absolute;
right: 0;
top: 0;
padding: 0 20px;
font-size: 13px;
color: black;
}
.href>a {
margin-left: 10px;
line-height: 24px;
color: black;
}
.href>a:hover {
color: blue;
}
.href>.strong {
font-weight: 700;
}
.img {
width: 270px;
margin: 0 auto;
margin-top: 140px;
}
.input {
height: 34px;
padding-left: 10px;
border: 1px solid #b6b6b6;
width: 539px;
margin: 0 auto;
position: relative;
float: left;
margin-left: calc(50% - 320px);
}
.input:hover {
border-color: #4791ff;
}
.input>input {
font-size: 16px;
font-weight: 400;
font-family: arial;
height: 20px;
line-height: 20px;
width: 500px;
margin-top: 7px;
}
.input>img {
position: absolute;
top: 5px;
}
.input>a {
position: absolute;
right: 0;
}
.sure {
background: dodgerblue;
color: white;
width: 100px;
height: 36px;
line-height: 36px;
text-align: center;
float: left;
}
.sure>a {
text-decoration: none;
color: white;
}
</style>
</head>
<body>
<div class="href">
<a class="strong" href="#">新闻</a>
<a class="strong" href="#">Hao123</a>
<a class="strong" href="#">地图</a>
<a class="strong" href="#">视频</a>
<a class="strong" href="#">贴吧</a>
<a class="strong" href="#">学术</a>
<a href="#">登录</a>
<a href="#">设置</a>
</div>
<div class="img">
<img src="https://www.baidu.com/img/bd_logo1.png" width="270" height="129" />
</div>
<div class="input">
<input type="text" />
<img src="https://s2.ax1x.com/2019/09/05/nnzlE4.jpg" />
</div>
<div class="sure">
<a href="#">百度一下</a>
</div>
</body>
</html>
day03
最新推荐文章于 2024-05-17 09:30:03 发布