我一直试图解决这个问题。任何建议/修复将不胜感激!
来源:我的来源
问题:字幕不显示
html(用于轨道滑块):
<div><img class="art-work" src="art/2.png" alt="" data-caption="#htmlCaption1" /></div>
<div><img class="art-work" src="art/3.png" alt="" data-caption="#htmlCaption2" /></div>
<div><img class="art-work" src="art/4.png" alt="" data-caption="#htmlCaption3" /></div>
....等等
html(用于轨道滑块标题):
<span class="orbit-caption" id="htmlCaption1">Art #1</span>
<span class="orbit-caption" id="htmlCaption2">Art #2</span>
<span class="orbit-caption" id="htmlCaption3">Art #3</span>
...等等
html中的js:
<script type="text/javascript">
$(window).load(function() {
$('#featured').orbit({
bullets: true,
timer: false,
captions: true,
animation: 'fade'
});
});
</script>