网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
</main>
第四步:最下方的页脚设置
```
CSS部分
首先要在头标签中引入css样式
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>网易云</title>
<link rel="stylesheet" type="text/css" href="../css/reset.css">
<link rel="stylesheet" type="text/css" href="../iconfont/iconfont.css">
<link rel="stylesheet" type="text/css" href="../css/webapp.css">
</head>
1.anchor.css
@charset "UTF-8";
*{
box-sizing: border-box;
}
html,body{
height:100%;
}
html{
font-size:26.67vw;
}
body{
display: flex;
flex-direction: column;
}
/*header*/
header{
height:0.49rem;
background:#d43b33;
display: flex;
justify-content: space-between;
}
header>.iconfont{
width:0.54rem;
font-size:0.24rem;
color:#fcf3ff;
display: flex;
align-items: center;
}
header form{
flex:1;
background:#fff;
height:0.3rem;
align-self: center;
display: flex;
border-radius:5px;
overflow:hidden;
}
header form .iconfont{
padding-left:0.47rem;
display: flex;
align-items: center;
font-size:0.14rem;
color:#c8c8c8;
}
header form input{
border:none;
flex:1;
font-size:0.14rem;
color:#c8c8c8;
padding-left:0.09rem;
}
header>.iconfont:first-child{
padding-left:0.15rem;
}
header>.iconfont:last-child{
padding-left:0.18rem;
}
/*nav*/
nav{
height:0.4rem;
display: flex;
justify-content: space-between;
padding:0 0.12rem;
}
nav a{
border-bottom:4px solid #fff;
display: flex;
align-items: center;
padding:0.06rem;
}
nav a:first-child{
color:#c04033;
border-color:#c04033;
}
/*footer*/
footer{
height:0.48rem;
width:100%;
position:fixed;
bottom:0;
background:rgba(0,0,0,0.8);
display: flex;
justify-content: space-between;
padding:0 0.27rem;
}
footer aside{
display: flex;
flex-flow:column;
justify-content: center;
align-items: center;
}
footer aside .iconfont{
color:#b2a3a0;
font-size:0.25rem;
}
footer aside span{
color:#b2a3a0;
font-size:0.1rem;
}
footer aside:first-child .iconfont{
color: #fff;
}
footer aside:first-child span{
color:#fff;
}
2.reset.css
@charset "utf-8";
html,body,ul,ol,dl,li,dt,dd,p,form,input,h1,h2,h3,h4,h5,h6,fieldset,select,img,textarea,legend{
margin:0;
padding:0;
}
body{
font-size:16px;
}
img,fieldset{
border:none;
}
img{
vertical-align: middle;
}
b,strong,i,em,h1,h2,h3,h4,h5,h6{
font-weight:500;
font-style:normal;
}
a{
text-decoration: none;
color:#000;
}
ul,ol{
list-style:none;
}
.clearfn:after{
content:"";
clear:both;
display: block;
overflow:hidden;
height:0;
visibility: hidden;
}
3.webapps.css
@charset "UTF-8";
*{
box-sizing: border-box;
}
html,body{
height:100%;
}
html{
font-size:26.67vw;
}
body{
display: flex;
flex-direction: column;
}
/*header*/
header{
height:0.49rem;
background:#d43b33;
display: flex;
justify-content: space-between;
}
header>.iconfont{
width:0.54rem;
font-size:0.24rem;
color:#fcf3ff;
display: flex;
align-items: center;
}
header form{
flex:1;
background:#fff;
height:0.3rem;
align-self: center;
display: flex;
border-radius:5px;
overflow:hidden;
}
header form .iconfont{
padding-left:0.47rem;
display: flex;
align-items: center;
font-size:0.14rem;
color:#c8c8c8;
}
header form input{
border:none;
flex:1;
font-size:0.14rem;
color:#c8c8c8;
padding-left:0.09rem;
}
header>.iconfont:first-child{
padding-left:0.15rem;
}
header>.iconfont:last-child{
padding-left:0.18rem;
}
/*nav*/
nav{
height:0.4rem;
display: flex;
justify-content: space-between;
padding:0 0.12rem;
}
nav a{
border-bottom:4px solid #fff;
display: flex;
align-items: center;
padding:0.06rem;
}
nav a:first-child{
color:#c04033;
border-color:#c04033;
}
/*content*/
main{
flex:1;
background:#fff;
overflow:auto;
}
main .content .banner{
height:1.39rem;
}
main .content .banner img{
height:100%;
width:100%;
}
main .content .adcontent{
display: flex;
align-items: center;
height:1.03rem;
border-bottom: 1px solid #999;
}
main .content .adcontent dl{
width:33.3%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
main .content .adcontent dl .iconfont{
width:0.54rem;
height:0.54rem;
border:1px solid #d63934;
border-radius:50%;
font-size:0.25rem;
color:#d2382c;
display: flex;
justify-content: center;
align-items: center;
}
main .content .adcontent dl:nth-child(2) .iconfont{
font-size:0.35rem;
}
main .content .adcontent dl dd{
font-size:0.11rem;
margin-top:0.07rem;
}
main .title{
height:0.45rem;
display: flex;
justify-content: space-between;
padding:0 0.1rem;
}
main .title aside:first-child{
padding-top:0.2rem;
}
main .title aside:first-child .iconfont{
font-size:0.15rem;
color:#c04736;
}
main .title aside:first-child span{
font-size:0.15rem;
}
main .title aside:last-child{
font-size:0.1rem;
padding-top:0.23rem;
}
main .imglist{
display: flex;
flex-flow:wrap;
justify-content: space-between;
padding:0 0.1rem;
}
main .imglist dl{
width:1.14rem;
margin-top:0.18rem;
}
main .imglist dl dt img{
![img](https://img-blog.csdnimg.cn/img_convert/995c7828db1e3d0c25fa4c6576073e82.png)
![img](https://img-blog.csdnimg.cn/img_convert/bf7d1eea0e2ff6035de20f5ba0f3b846.png)
**网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。**
**[需要这份系统化的资料的朋友,可以添加戳这里获取](https://bbs.csdn.net/topics/618668825)**
**一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!**
;
}
main .imglist dl dt img{
[外链图片转存中...(img-C7CcqsA8-1715886265701)]
[外链图片转存中...(img-Lj6YK06B-1715886265701)]
**网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。**
**[需要这份系统化的资料的朋友,可以添加戳这里获取](https://bbs.csdn.net/topics/618668825)**
**一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!**