﻿li {
    list-style: none;
}

/* 外层盒子样式,左右箭头和小圆点都要采用绝对定位，所以其父盒子要采用相对定位*/
.banners {
    position: relative;
    overflow: hidden;
    width: 740px;
    height: 420px;
    margin: 10px auto;
}

/*滚动区 包裹所有图片的盒子 宽度要足够宽可以放下所有的图片*/
.images {
    position: absolute;
    top: 0;
    left: 0;
    width: 700%;
}

/* 对图片使用浮动 使其排列在一行*/
.images li {
    float: left;
    padding-right: 10px;
}

/* 图片大小会撑大盒子,设置图片大小 */
/* .banners img {
    width: 520px;
    height: 280px;
} */
/*左右箭头相同样式*/
.prev,
.next {
    /* display: none; */
    position: absolute;
    /* 绝对定位的盒子垂直居中 */
    top: 50%;
    margin-top: -30px;
    width: 40px;
    height: 60px;
    background: rgba(255, 255, 255, 0.6);
    text-align: center;
    line-height: 50px;
    color: #444444;
    text-decoration: none;
    font-size: 48px
}

/*左箭头靠左定位*/
.prev {
    left: 0;
    /* 设置圆角 */
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

/*右箭头靠右定位*/
.next {
    right: 0;
    /* 设置圆角 */
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

/* 小圆点外层盒子的样式 */
.dots {
    display: none;
    position: absolute;
    bottom: 10px;
    left: 50%;
    margin-left: -35px;
    height: 13px;
    background: rgba(255, 255, 255, .3);
    border-radius: 7px;
}

/* 小圆点样式*/
.dots li {
    float: left;
    width: 8px;
    height: 8px;
    background-color: #ffffff60;
    border-radius: 50%;
    margin: 3px;
}

/* 小圆点被点击的样式 */
.dots .active {
    background-color: #ffffff;
}


@media screen and (max-width: 1080px) {
    .banners {
        position: relative;
        overflow: hidden;
        width: 490px;
        height: 420px;
        margin: 10px auto;
    }
}

/* 響應式設計語法 */
@media screen and (max-width: 560px) {
    .banners {
        width: 340px;
        height: 645px;
    }

    .banners img {
        width: 340px;
    }
}

/* 響應式設計語法 */
@media screen and (max-width: 400px) {
    .banners {
        width: 340px;
        height: 645px;
    }

    .banners img {
        width: 340px;
    }
}