文章来源:https://www.toymoban.com/news/detail-583085.html
文章来源地址https://www.toymoban.com/news/detail-583085.html
<template>
<div class="carouselBox">
<el-carousel :interval="4000" type="card" height="380px" indicator-position="none">
<el-carousel-item v-for="item in 4" :key="item">
<h3 text="2xl" justify="center">{{ item }}</h3>
</el-carousel-item>
</el-carousel>
</div>
</template>
<style scoped>
.carouselBox {
width: 100%;
max-width: 1200px;
min-width: 1000px;
margin: 0 auto;
padding: 50px 0 ;
}
.el-carousel__item h3{
position: relative;
color: #475669;
margin: 0 auto;
text-align: center;
background-color: #f6f8fb;
width: 308px;
height: 380px;
border-radius: 14px;
box-shadow: 0px 0px 11px 0px rgba(35, 35, 35, 0.14);
}
</style>
到了这里,关于Element UI之卡片轮播图实例的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!