我需要在滑块的图像中添加标题,并且必须在单击相应标题时移动每个滑块。如何自定义标题的bxlsider
我已经添加了字幕:在javasript真正,但仍字幕是images.And外面我需要定制的字幕和替换它们作为文本的sliders.I附上下面的样本图像来解释我需要的。我也附加了我的代码。
<ul class="bxslider">
<li><img src="http://bxslider.com/images/730_200/tree_root.jpg" /></li>
<li><img src="http://bxslider.com/images/730_200/hill_fence.jpg" /></li>
<li><img src="http://bxslider.com/images/730_200/trees.jpg" /></li>
</ul>
<script>
$(document).ready(function(){
$('.bxslider').bxSlider();
});
$('.bxslider').bxSlider({
mode: 'horizontal',
infiniteLoop: true,
auto: true,
autoStart: true,
autoDirection: 'next',
autoHover: true,
pause: 3000,
autoControls: false,
pager: true,
pagerType: 'full',
controls: true,
captions: true,
speed: 1200,
slideWidth: 800
});
</script>
标题应该放在哪里?我在您的示例图像中看不到。只有一个突出显示为活动的占位符。 – hungerstar
@temp阅读https://stackoverflow.com/help/privileges/vote-up和https://stackoverflow.com/help/accepted-answer/如果答案帮助你至少可以投票,如果不接受。 –