直接干货,
图片自己扣。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HYY</title>
<link href="../"/>
<link rel="stylesheet" href="../font-awesome-4.7.0/css/font-awesome.min.css">
<style>
body{
min-width: 1500px;
margin: 0 auto;
}
.top{
position: relative;
width: 100%;
height: 60px;
}
.top_left{
padding-left: 10px;
position: relative;
left: 0px;
top:16px;
}
.top a{
text-decoration: none;
/*文字相关的属性*/
color: #000000;
font-size: 16px;
padding-left: 20px;
}
.top_right{
position: absolute;
left: 1360px;
top:13px;
display: flex;
flex-flow: row wrap;
justify-content: center;
align-items: center;
}
.top_right a{
/*position: absolute;*/
/*right: 91px;*/
/*top: 18px;*/
/*width: 50px;*/
}
.top_right button{
cursor: pointer;
font-size: 14px;
color: white;
background-color: #1c6aff;
border: 1px solid white ;
border-radius: 7px;
text-decoration: none;
padding: 4px;
margin-left: 20px;
}
.top_right button:hover{
cursor: pointer;
color: #1f3eff;
background-color: white;
border: 1px solid #1f3eff;
transition:0.35s;
}
/*中间*/
.middle{
display: flex;
flex-flow: column nowrap;
justify-content: center;
align-items:center;
heigth:700px;
}
.middle img{
width: 330px;
padding-bottom: 30px;
}
.middle .input_text{
display: flex;
flex-flow: row wrap;
justify-content: center;
align-items:center;
position: relative;
}
._text{
width: 655px;
height: 43px;
border: 2px solid #b6b6b6;
border-radius: 10px 0 0 10px;
/*去掉右边框 - 将右边框宽度设置为0*/
border-right:none;
/*左填充*/
outline: none;
}
._text:hover{
border:2px solid #4e6ef2;
}
/*按钮*/
.input_button{
cursor: pointer;
font-size: 20px;
width: 120px;
height: 49px;
background-color: #4e6ef2;
color: white;
border: 2px solid #4e6ef2;
border-radius: 0 10px 10px 0;
position: absolute;
left: 555px;
}
.camera{
position: absolute;
top: 13px;
left: 525px;
float: left;
background-image: url("camera.jpg");
width: 23px;
height: 23px;
background-repeat: no-repeat;
background-position: 0px -49px;
}
.camera:hover{
cursor: pointer; /* 把鼠标调成手型*/
position: absolute;
top: 13px;
left: 525px;
float: left;
background-image: url("camera.jpg");
width: 23px;
height: 23px;
background-repeat: no-repeat;
background-position: 0px -73px;
}
.tuiJan{
display: flex;
flex-flow: column wrap;
justify-content: space-between;
align-items: center;
padding-top: 30px;
}
.bsm{
display: flex;
flex-flow: row wrap;
justify-content: space-between;
align-items: center;
position: relative;
padding-right: 20px;
}
.bsm img{
width: 28px;
padding-right: 10px;
}
.tuiJan_1{
text-decoration: none;
color: #4fa9f2;
cursor: pointer;
}
.tuiJan_1:hover{
text-decoration: underline;
}
.m_new{
width: 660px;
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
.m_new a{
text-decoration: none;
margin-top: 50px;
color: #000000;
margin-right: 25px;
font-size: 17px;
}
.m_new a:hover{
color: #4e6ef2;
}
a:hover{
color: #4e6ef2;
}
/*6调新闻*/
.new{
padding: 0;
height: 200px;
width: 660px;
line-height: 30px;
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
.new div ul li{
list-style: none;
margin-left: 0px;
padding-left: 0;
}
.new div ul li a:hover{
color: #3584f2;
cursor: pointer;
text-decoration: underline;
}
.new div ul{
padding: 0;
}
.new_1 a{
text-decoration: none;
color: #414141;
padding-left: 0px;
font-size: 18px;
line-height: 40px;
}
/*辅助模式*/
.fu_zhu{
position: absolute;
right: 30px;
top: 75%;
background-color: #f4f3f5;
width: 48px;
height: 100px;
box-shadow: black;
border-radius: 40%;
}
.fu_zhu:hover{
cursor: pointer;
}
.ma{
position: absolute;
right:0;
top:0;
background-image: url("fuzhu.png");
background-position:10px;
background-color: #f4f3f5;
background-repeat: no-repeat;
background-size: 60%;
width: 48px;
height: 48px;
border-radius: 50%;
}
.ma:hover{
box-shadow:rgba(0,0,0,.3) 0px 0px 15px;
}
/*绝对位置*/
.erma{
position: absolute;
right: 0;
bottom:0;
background-repeat: no-repeat;
background-color: #f4f3f5;
background-image: url("ma.png");
background-position:9px;
background-size: 60%;
width: 48px;
height: 48px;
border-radius: 50%;
}
.erma:hover{
box-shadow:rgba(0,0,0,.3) 0px 0px 15px;
}
.foot{
display: flex;
flex-flow: row wrap;
justify-content:center;
font-size: 17px;
line-height: 22px;
position: fixed;
bottom: 10px;
background-color: white;
}
.foot a{
padding:5px 5px 5px 5px ;
margin-bottom: 0px;
color: #BBBBBB;
font-size: 15px;
line-height: 24px;
text-decoration: none;
}
</style>
</head>
<body>
<div class="top">
<div class="top_left">
<a href="https://news.baidu.com/">新闻</a>
<a href="https://www.hao123.com/">hao123</a>
<a href="https://map.baidu.com/@12127979.3,4051219.02,12z">地图</a>
<a href="https://tieba.baidu.com/index.html">贴吧</a>
<a href="https://v.baidu.com/index.html">视频</a>
<a href="https://image.baidu.com">图片</a>
<a href="https://image.baidu.com">网盘</a>
<a href="https://www.baidu.com/more/">更多</a>
</div>
<div class="top_right">
<a href="#" class="top_r">设置</a>
<button value="登录">登录</button>
</div>
</div>
<div class="middle">
<img src="logo.png"/>
<!--输入框--> <!--按钮-->
<div class="input_text">
<input type="text" class="_text"/>
<div class="camera"></div>
<input type="button" value="百度一下" class="input_button">
</div>
</div>
<!--搜索的框下-->
<div class="tuiJan">
<div class="bsm">
<img src="boshimao.png">
<a href="https://www.bytecollege.cn" class="tuiJan_1">早来Byte早上课,年薪百万不是个
<img src="right.png" style="width: 17px;position: absolute;bottom: 5px; padding-left: 10px;">
</a>
</div>
<div class="m_new">
<a href="https://top.baidu.com/board?platform=pc&sa=pcindex_entry" style="font-family: 华文琥珀">
今日热搜
<i class="fa fa-chevron-right" aria-hidden="true" style="font-size: 12px"></i>
<i class="fa fa-chevron-right" aria-hidden="true" style="font-size: 12px"></i>
</a>
<a class="hyh" href="#" style="margin-right: 5px;color: #575757">
<i class="fa fa-refresh" aria-hidden="true" style="font-size: 15px"></i>
换一换
</a>
</div>
<div class="new">
<div class="new_1">
<ul>
<li>
<span style="color: #ff4000">⬆</span>
<a href="#">坚定不移维护香港长期繁荣稳定
<span style="color: #fbffff;background-color: #ff5f00;border-radius: 4px;font-size: 16px">
火</span>
</a>
</li>
<li>
<span style="color: #ff6b01">2</span>
<a href="#">行程卡摘星后火车票搜索量猛涨</a>
<span style="color: #fbffff;background-color: red;border-radius: 4px;font-size: 15px">
新</span>
</li>
<li>
<span style="color: #ffa000">3</span>
<a href="#">上海应届硕士毕业生可直接落户</a>
</li>
</ul>
</div>
<div class="new_1">
<ul>
<li>
<span style="color: #ffaa00">4</span>
<a href="#">跟生活息息相关!这些新规7月实施</a>
</li>
<li>
<span style="color: #756e73">5</span>
<a href="#">成都一公司人事称大专生只值200</a>
</li>
<li>
<span style="color: #756e73">6</span>
<a href="#">微念起诉李子柒公司案将开庭......</a>
</li>
</ul>
</div>
</div>
</div>
<div class="foot">
<a href="https://www.baidu.com/duty/">关于百度</a>
<a href="#">About Baidu</a>
<a href="#">京公网安备11000002000001号 </a>
<a href="#">京ICP证030173号</a>
<a href="#" id="record">药品医疗器械网络信息服务备案(京)网药械信息备字(2021)第00159号</a>
<a href="#"> 医疗器械网络交易服务第三方平台备案凭证(京)网械平台备字(2020)第00002号</a>
</div>
<!--辅助模式-->
<div class="fu_zhu">
<div class="ma"></div>
<div class="erma"></div>
</div>
</body>
</html>
效果展示: