繁体   English   中英

Bootstrap 轮播指示器

[英]Bootstrap carousel indicators

我正在使用 bootstrap carousel 我想在指标中做border-radius

将代码添加到 style.css 但无法更改样式

.carousel-indicators li {
width: 11px!important;
height: 5px!important;
border-radius: 2.5px !important;
background-color: #ffffff!important;
opacity: 1 !important;
}

为什么不改变怎么改变,你能帮我吗?

https://i.hizliresim.com/WX4qrE.png

我尝试在此处复制您的问题,但我可以毫无困难地更改指标样式。

您的style.css文件是否正确 链接 如: <link rel="stylesheet" href="path/to/style.css">

此外,您应该避免使用!important并尝试寻找其他方法来增加特异性

我解决了这个问题如下

边框顶部和边框底部 0px

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM