一、原始样式
二、修改后
三、代码
<template>
<div>
<el-carousel height="250px" >
<el-carousel-item v-for="item in 4" :key="item">
<h3 class="small">{
{ item }}</h3>
</el-carousel-item>
</el-carousel>
</div>
</template>
<style lang="stylus" scoped>
.el-carousel {
width: 500px;
.el-carousel__item:nth-child(2n) {
background-color: #99a9bf;
}
.el-carousel__item:nth-child(2n&#