简体   繁体   中英

Bootstrap carousel indicators

I am using bootstrap carousel I want to do border-radius in indicators

added code to style.css but can not change style

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

why is not it changing how to change , can you help me?

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

I tried replicating your issue here , but I could change the indicators style without any trouble.

Is your style.css file properly linked ? Such as: <link rel="stylesheet" href="path/to/style.css"> .

Also, you should avoid using !important and try looking for other ways to increase the specificity .

i solved this problem will be as follows

border-top and border-bottom 0px

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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