irpas技术客

antd走马灯Carousel 宽高百分比 点样式修改_dsj_0516

网络 2941

import { Carousel } from 'antd'; //dots样式的修改 :global { .slick-dots li button { width: 10px !important ; height: 10px !important; background: rgb(255, 255, 255) !important; // 改变dots的颜色 border-radius: 100% !important; } .slick-dots li { width: 23px !important ; } .slick-dots li.slick-active { width: 15px !important ; } .ant-carousel .slick-dots-bottom{ bottom: -12% !important; } } //走马灯div宽高百分比 :global{ .ant-carousel{ height: 100%; width: 100%; } .ant-carousel .slick-slider{ height: 100%; width: 100%; } .slick-list{ height: 100% !important; width: 100%; } .slick-track{ color: #fff; width: 100%; height: 100%; } .slick-slide{ color: #fff; width: 100%; height: 100%; div{ width: 100%; height: 100% ; } } }


1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,会注明原创字样,如未注明都非原创,如有侵权请联系删除!;3.作者投稿可能会经我们编辑修改或补充;4.本站不提供任何储存功能只提供收集或者投稿人的网盘链接。

标签: #antd走马灯Carousel #宽高百分比 #点样式修改 #import #Carousel #from