轮播图css

@charset "UTF-8";
*{
    margin: 0;
    padding: 0;
    text-decoration: none;
}
body{
    padding: 20px;
}
/*最外围父级元素的样式*/
.box{
    position: relative;
    width: 790px;
    height: 340px;
    margin: 0 auto;
    overflow: hidden;
}
/*图片父级的样式*/
.img_list{
    position: absolute;
    z-index: 1;
    width: 6320px;
    height: 340px;
}
/*图片样式*/
.img_list img{
    float: left;
    width: 790px;
    height: 340px;
}
/*箭头的样式*/
.arrow{
    width: 40px;
    height: 60px;
    font-size: 30px;
    line-height: 60px;
    text-align: center;
    color: #ffffff;
    background-color: RGBA(0, 0, 0, .3);
    cursor: pointer;
    display: none;
    position: absolute;
    z-index: 2;
    top:160px;
}
#nex{
    right: 0px;
}
/*鼠标悬浮在父空间上时,显示两边的箭头*/
.box:hover .arrow{
    display: block;
}
 /*鼠标移到箭头上,改变背景色   也可以通过js*/
.arrow:hover{
    background-color: RGBA(0, 0, 0,7);
}
 /*小圆点外围父级元素样式*/
.poi{
    height: 10px;
    width: 180px;
    position: absolute;
    z-index: 2;
    left: 330px;
    bottom: 30px;
}
 /*小圆点样式*/
 span{
    margin-right: 5px;
    width: 10px;
    height: 10px;
     border-radius: 50%;
    float: left;
    background-color: #ffffff;
}
 /*单纯的 默认第一个小圆点的颜色*/
.on{
    background-color: #00c37e;
}
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值