修改bootstrap轮播索引样式

查看:199
本文介绍了修改bootstrap轮播索引样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

如何修改bootstrap轮播组件索引样式?不要小圆点,要变成汉字,下面加一个底边框。在线急等。。。。。。

解决方案

里列表里新增个id属性index,覆盖原有属性.bootstrap原点是用border-radius圆角实现的,清除圆角只留下边框

<style>
#index {
    display: inline-block;
    width: auto;
    height: auto;
    margin: 0;
    background-color: none;
    text-indent: 0;
    cursor:pointer;
    border-top: none;
    border-left: none;
    border-right:none;
    border-bottom: 2px solid#080808;
    border-radius: 0px;
}

    </style>
<div id="myCarousel" class="carousel slide" data-ride="carousel">
    <!-- Indicators -->
    <ol class="carousel-indicators">
        <li data-target="#myCarousel" data-slide-to="0" class="active"id="index">第一条</li>
        <li data-target="#myCarousel" data-slide-to="1"id="index">第二条</li>
        <li data-target="#myCarousel" data-slide-to="2"id="index">第三条</li>
    </ol>

这篇关于修改bootstrap轮播索引样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆