
css布局
>
<
* {
padding: 0;
margin: 0;
list-style: none;
text-decoration: none;
}
#banner {
width: 1000px;
height: 460px;
overflow: hidden;
position: relative;
margin: 100px auto 0;
}
#imgList a {
float: left;
width: 100%;
height: 100%;
}
.item {
position: absolute;
}
.item img {
width: 100%;
height: 100%;
}
#icon div {
width: 30px;
height: 45px;
line-height: 40px;
font-size: 48px;
text-align: center;
color: #ddd;
position: absolute;
top: 45%;
padding-right: 5px;
}
#icon #prev {
right: 20px;
}
#icon #next {
left: 10px;
}
#icon div:hover {
background: #000;
opacity: .4;
color: #fff;
border-radius: 5px;
}
#iconList {
position: absolute;
right: 20px;
bottom: 10px;
}
.tab {
float: left;
width: 6px;
height: 6px;
border: 2px solid rgba(184, 178, 182, .8);
border-radius: 100%;
line-height: 6px;
background: #999497;
cursor: pointer;
margin-right: 10px;
}
.active {
background-color: #fff;
border-color: #999497;
}
js:
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)