我想用这样的东西改变轮播指示器:
我的轮播指标有这个标记:
<ol class="carousel-indicators">
<li data-target="#ShowCarousel-03" data-slide-to="0" class="active">
<h4>IMAGE1</h4><br/><h5>subtitle</h5><br/><span>+</span>
</li>
<li data-target="#ShowCarousel-03" data-slide-to="0" class="active">
<h4>IMAGE2</h4><br/><h5>subtitle</h5><br/><span>+</span>
</li>
<li data-target="#ShowCarousel-03" data-slide-to="2">
<h4>IMAGE3</h4><br/><h5>subtitle</h5><br/><span>+</span>
</li>
<li data-target="#ShowCarousel-03" data-slide-to="0" class="active">
<h4>IMAGE4</h4><br/><h5>subtitle</h5><br/><span>+</span>
</li>
</ol>
CSS:
.carousel-indicators {
position: absolute;
top: 0px;
left: 0px;
z-index: 5;
margin: 0;
list-style: none;
}
.carousel-indicators li{
background: url(images/triangle.png) no-repeat;
width:320px;
height:176px;
cursor: pointer;
text-align:center;
}
当我调整浏览器的大小时,轮播会适应屏幕的宽度,但指示器正在折叠。
有人可以帮助我提供有关如何在较低分辨率(如轮播图像)上制作此比例的提示吗?
谢谢!
乐:
我试过把 li 元素放在这样的地方:
<div class="row-fluid">
<div class="span3>
<li data-target="#ShowCarousel-03" data-slide-to="0" class="active">
<h4>IMAGE1</h4><br/><h5>subtitle</h5><br/><span>+</span>
</li>
<div class="span3>
<li data-target="#ShowCarousel-03" data-slide-to="0" class="active">
<h4>IMAGE1</h4><br/><h5>subtitle</h5><br/><span>+</span>
</li>
<div class="span3>
<li data-target="#ShowCarousel-03" data-slide-to="0" class="active">
<h4>IMAGE1</h4><br/><h5>subtitle</h5><br/><span>+</span>
</li>
</div>
</div>
但它不起作用。