幻灯片类与移动导航和我的滑块轮播冲突

时间:2017-02-24 08:38:39

标签: javascript jquery html css twitter-bootstrap

我这里有一个bootstrap carousel是代码:

<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
  <ol class="carousel-indicators">
    <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
    <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
    <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
  </ol>
  <div class="carousel-inner" role="listbox">
    <div class="carousel-item active">
      <img class="d-block img-fluid" src="..." alt="First slide">
    </div>
    <div class="carousel-item">
      <img class="d-block img-fluid" src="..." alt="Second slide">
    </div>
    <div class="carousel-item">
      <img class="d-block img-fluid" src="..." alt="Third slide">
    </div>
  </div>
  <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="sr-only">Previous</span>
  </a>
  <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="sr-only">Next</span>
  </a>
</div>

这是我的标题代码:

<header id="header-section" class="header-section-4 header-main nav-left hidden-sm hidden-xs" data-sticky="1">

        <div class="container">

            <div class="header-left">

                <div class="logo">

                    <a href="http://developer.arazibazar.com/">

                        <img src="img/logo 1.jpg" alt="logo">

                    </a>

                </div>

                <nav class="navi main-nav">

                    <ul>

                               <li><a href="#">Blogs</a></li>

                              <li><a href="#">Forum</a></li>

                             <li><a href="#">Maps</a></li>


                    </ul>

                </nav>

            </div>

            <div class="header-right">

                <div class="user">

                    <a href="#" data-toggle="modal" data-target="#pop-login">Sign In / Register</a>

                    <a href="add-new-property.html" class="btn btn-default">Create Listing</a>

                </div>

            </div>

        </div>

    </header>

    <div class="header-mobile visible-sm visible-xs">

        <div class="container">

            <!--start mobile nav-->

            <div class="mobile-nav">

                <span class="nav-trigger"><i class="fa fa-navicon"></i></span>

                <div class="nav-dropdown main-nav-dropdown"></div>

            </div>

            <!--end mobile nav-->

            <div class="header-logo">

                <a href="index.html"><img src="img/logo 1.jpg" alt="logo"></a>

            </div>

            <div class="header-user">

                <ul class="account-action">

                    <li>

                        <span class="user-icon"><i class="fa fa-user"></i></span>

                        <div class="account-dropdown">

                            <ul>

                                <li> <a href="add-new-property.html"> <i class="fa fa-plus-circle"></i>Creat Listing</a></li>

                                <li> <a href="#" data-toggle="modal" data-target="#pop-login"> <i class="fa fa-user"></i> Log in / Register </a></li>

                            </ul>

                        </div>

                    </li>

                </ul>

            </div>

        </div>

    </div>

现在问题是我的导航栏没有在移动视图中打开,除非我从我的引导滑块中删除了类(幻灯片)。但当我删除类幻灯片时,我的滑块指示停止工作。我现在应该怎么做??有没有解决方案?我正在研究它3个小时,请hgelp我

此致

0 个答案:

没有答案