效果:
代码:
<style>
.w {
width: 1000px;
margin: 0 auto;
margin-top: 10px;
}
.header {
height: 200px;
background-color: purple;
}
.banner {
height: 300px;
background-color: skyblue;
}
.main {
height: 1000px;
background-color: yellowgreen;
}
span {
display: none;
position: absolute;
bottom: 0;
}
.slider-bar {
position: absolute;
top: 400px;
left: 50%;
margin-left: 500px;
width: 30px