我是JQuery的新手,我正在制作一个制作您自己的轮播,其中有一系列图片,并且您希望在点击时将图片添加到轮播。JQuery和Bootstrap:如何将图像列表中的图像添加到轮播?
页面左侧有图片可供选择,传送带位于右侧。图像列表的代码就像这样。
<div class="pics">
<div class="col-sm-4 iu">
<img src="img/iu.png" alt="IU" class="img-thumbnail" style="width:150px; height:150px;">
</div>
<div class="col-sm-4 hyuna">
<img src="img/hyuna.png" alt="hyuna" class="img-thumbnail" style="width:150px; height:150px;">
</div>
的旋转木马幻灯片的代码是这个
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="img/minah.png" alt="minah" />
<div class="carousel-caption">
<h1>This is Minah.</h1>
</div>
</div>
<div class="item">
<img src="img/juwoo.png" alt="juwoo" />
<div class="carousel-caption">
<h1>This is Juwoo.</h1>
</div>
页开始与在地方已经是默认的旋转木马和它应该被点击从列表中的图像时,成为完全是空的。
默认轮播显示所有图像吗?此外,“当点击列表中的图像时,它应该变为完全空白。”这是否意味着当单击图像或仅显示单击图像时,传送带变空了? – chackerian
默认轮播仅显示一些图像。当点击图像时,默认轮播会消失,点击的图像将会传送到轮播。 – user298519