导航栏无法正常工作(引导程序 v3)
Navbar not working properly(bootstrap v3)
我的导航栏行为不正确。它同时在垂直行中显示 3 个滑块图像,并且不会在图片中滑动。使用的CSS是Twitter引导程序的CSS。我在那里有自己的CSS,但没有影响轮播,也没有添加javascript,只有Jquery和bootstrap.js。这是引导程序 V3。知道吗?
<div class="container">
<div id="carousel-example-generic" class="carousel slide">
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-
slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-
slide-to="1"></li>
<li data-target="#carousel-example-generic" data-
slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="item active">
<img src="img/timthumb.jpg" alt="...">
<div class="carousel-caption">
<p>Eyes of the owl</p>
</div>
</div>
<div class="item active">
<img src="img/timthumb.jpg" alt="...">
<div class="carousel-caption">
<p>Eyes of the owl</p>
</div>
</div>
<div class="item active">
<img src="img/timthumb.jpg" alt="...">
<div class="carousel-caption">
<p>Eyes of the owl</p>
</div>
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-
example-generic" data-slide="prev">
<span class="icon-prev"></span>
</a>
<a class="right carousel-control" href="#carousel-
example-generic" data-slide="next">
<span class="icon-next"></span>
</a>
</div>
</div>
您的问题似乎是您为所有幻灯片指定了active
类。仅指定第一个开始。为所有这些指定active
使它们都可见,并且其选择器在幻灯片中切换(不是活动项目,在单击按钮时是上一个或下一个无法拾取其他任何内容)无法选择,因为没有任何非活动不再可用。
<div class="item active">
<img src="http:''placehold.it'32x100" alt="..." />
<div class="carousel-caption">
<p>Eyes of the owl</p>
</div>
</div>
<div class="item"> <!-- removed active class from here -->
<img src="http:''placehold.it'42x100" alt="..." />
<div class="carousel-caption">
<p>Eyes of the owl</p>
</div>
</div>
<div class="item"><!-- removed active class from here -->
<img src="http:''placehold.it'52x100" alt="..." />
<div class="carousel-caption">
<p>Eyes of the owl</p>
</div>
</div>
小提琴
相关文章:
- 菜单栏class=活动引导程序主题无法正常工作
- 引导程序转盘不工作:堆叠图像(使用rails)
- 引导程序/轨道-可折叠导航栏没有'我不能在手机上工作
- 引导程序's的javascript在本地工作,但在部署到服务器时不能工作
- 使slideUp和slideDown在引导程序导航栏上工作
- Jquery 只为我在第 Asp.net 页上显示的引导程序警报工作一次
- 引导程序 3 模式在放置在固定父级中时无法正常工作
- 导航栏无法正常工作(引导程序 v3)
- 如何让引导选项卡在引导程序 3.3.x 中工作
- 无法让引导程序工作
- 无法使引导程序与 Webpack 一起工作
- 工作列表组引导程序
- 引导程序导航不工作,箭头显示但没有操作
- Twitter引导程序选项卡突然停止工作
- 引导程序3导航选项卡书签url不工作
- 引导程序导航选项卡不工作
- 引导程序导航栏是否可以像引导程序选项卡一样工作
- 可以'无法使Jquery选项卡在Simple Sidebar引导程序模板中工作
- 引导程序.粘贴-jQuery hasClass不工作
- 引导程序旋转木马控件不工作