Html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>百度一下,你就知道</title>
</head>
<body>
<div class="nav">
<a href="http://news.baidu.com/" target=_blank">新闻</a>
<a href="http://hao123.baidu.com/" target=_blank">好123</a>
<a href="http://map.baidu.com/" target=_blank">地图</a>
<a href="http://tieba.baidu.com/" target=_blank">贴吧</a>
<a href="http://haokan.baidu.com/" target=_blank">视频</a>
<a href="http://image.baidu.com/" target=_blank">图片</a>
<a href="http://pan.baidu.com/" target=_blank">网盘</a>
<a href="http://baidu.com/more/" target=_blank">更多</a>
<div class="right">
<a herf="#" id="sz">设置</a>
<a herf="#" id="dl">登录</a>
</div>
</div>
</span>
<div class="box">
<div class="logo">
<img src="百度logo.png" title="百度一下,你就知道" />
</div>
<input type="text">
<button>
<span class="baidu">百度一下</span>
</button>
<div class="content">
<div class="con">
<div class="hot"> 百度热搜> </div>
<div class="circle"><a herf="#" id="huan">换一换</a></div>
</div>
<div id="rs">
<ul>
<li><a><span></span>产业升级态势没有改变</a></li>
<li><a><span>3 </span>今天迎来小满</a></li>
<li><a><span>1 </span>亚速运指挥官手缠绷带宣布投降</a></li>
<li><a><span>4 </span>专家:近视手术无法治愈近视</a></li>
<li><a><span>2 </span>杭州楼市新政仅五天 有业主涨价80万</a></li>
<li><a><span>5 </span>12天感染者破千 广安疫情如何发生</a></li>
</ul>
</div>
</div>
</div>
<div id="footer" class="footer">
<a href="http://home.baidu.com/" target=_blank">关于百度</a>
<a href="http://ir.baidu.com/" target=_blank">about baidu</a>
<a href="http://baidu.com/duty/" target=_blank">使用百度前必读</a>
<a href="http://help.baidu.com/" target=_blank">帮助中心</a>
<a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11000002000001/" target=_blank">公安</a>
<a href="https://beian.miit.gov.cn/" target=_blank">京</a>
<a>2022 Baidu</a>
<a>互联网药品信息服务资格证书 (京)-经营性-2017-0020</a>
<a href="https://www.baidu.com/licence/" target=_blank">信息网络传播视听节目许可证0110516</a>
</div>
</body>
</html>
CSS
<style>
* {
padding: 0;
margin: 0;
font-family: 'Microsoft YaHei';
}
.nav {
height: 41px;
line-height: 41px;
}
.nav a {
display: inline-block;
font-size: 12px;
padding: 0 5px;
color: #4c4c4c;
text-decoration: none;
}
.nav a:hover {
color: #4e71f2;
}
.right {
float: right;
overflow: hidden;
margin-right: 20px;
}
.right {
/* position: absolute; */
/* right: 0; */
/* width: 150px; */
float: right;
overflow: hidden;
margin-top: 10px;
margin-left: 10px;
overflow: hidden;
}
#dl {
background-color: #4e71f2;
color: #fff;
font-size: 12px;
width: 40px;
height: 26px;
border: none;
border-radius: 5px;
text-align: center;
display: inline-block;
}
.logo {
margin-top: 150px;
text-align: center;
}
.box {
position: relative;
width: 650px;
height: 0px;
margin: 200px auto 100px;
}
input {
border: 2px solid #4e71f2;
height: 45px;
width: 550px;
border-radius: 5px 0 0 5px;
box-sizing: border-box;
}
button {
height: 45px;
width: 100px;
border: none;
background-color: #4e71f2;
position: absolute;
border-radius: 0 5px 5px 0;
left: 550px;
}
.baidu {
font-size: 17px;
color: #fff;
}
.content {
text-align: center;
}
.con {
margin: 100px auto 0;
text-align: center;
width: 658px;
height: 20px;
}
.hot {
display: block;
float: left;
overflow: hidden;
}
.circle {
display: block;
float: right;
}
#rs ul {
width: 654px;
margin: 10px auto;
text-align: center;
}
#rs ul li {
display: inline;
padding: 10px 0;
width: 50%;
float: left;
height: 20px;
overflow: hidden;
text-align: center;
}
#rs span {
margin-right: 5px;
}
.footer a {
display: inline-block;
font-size: 12px;
padding: 0 5px;
color: #4c4c4c;
text-decoration: none;
}
.footer a:hover {
color: black;
}
#footer {
text-align: center;
position: fixed;
bottom: 0px;
padding-left: 10px;
bottom: 0px;
height: 20px;
text-align: center;
font-size: 10px;
background-color: #fff;
}
</style>