xiaohongTest/src/components/promotionalPageComponents/slidingWindowTwo.vue
2024-02-19 09:37:57 +08:00

43 lines
997 B
Vue

<template>
<el-carousel :interval="5000" arrow="always" height="360px" class="box">
<el-carousel-item v-for="item in 1" :key="item">
<img src="../../assets/images/banner1.jpg" alt="" style="100%">
</el-carousel-item>
<el-carousel-item v-for="item in 1" :key="item">
<img src="../../assets/images/banner2.jpg" alt="" style="width: 100%;">
</el-carousel-item>
<el-carousel-item v-for="item in 1" :key="item">
<img src="../../assets/images/banner1Big2.jpg" alt="" style="width: 100%;">
</el-carousel-item>
</el-carousel>
</template>
<style scoped>
.box{
width: 100%;
}
.el-carousel__item h3 {
color: #475669;
opacity: 0.75;
line-height: 300px;
margin: 0;
text-align: center;
}
.el-carousel__item:nth-child(2n) {
background-color: #99a9bf;
}
.el-carousel__item:nth-child(2n + 1) {
background-color: #d3dce6;
}
@media screen and (max-width: 1700px){
.boxCapital{
width: 100%;
text-align: center;
}
}
</style>