2-5、定位回到顶部
* {
margin: 0;
padding: 0;
}
html,body {
width: 100%;
height: 100%;
font-size: 14px;
}
header {
height: 35px;
background: #666;
}
header a {
line-height: 35px;
color: #fff;
text-decoration: none;
margin: 0 15px;
}
.container {
height: 200%;
}
a[href="#top"]{
position:fixed;
right:10px;
bottom:10px;
display:block;
width:40px;
height:40px;
background:#bbb;
text-decoration:none;
color:#fff;
line-height:20px;
text-align:center;
}
首页
新课程
热门课程
返回
顶部