由于某些原因,我的滑块无法正常工作,我无法理解。这是代码:
<div id="slider1_container">
<!-- Slides Container -->
<div u="slides" style="cursor: move; position: relative; overflow: hidden; left: 0px; top: 0px; width: 700px; height: 400px;">
<div><img u="image" src="@appRoot/images/Slider/camp1.jpg" /></div>
<div><img u="image" src="@appRoot/images/Slider/camp2.jpg" /></div>
<div><img u="image" src="@appRoot/images/Slider/camp3.jpg" /></div>
</div>
<!-- Arrow Navigator Skin Begin -->
<!-- Arrow Navigator Skin End -->
</div>
<!-- Arrow Left -->
<span u="arrowleft" class="jssora03l" style="width: 55px; height: 55px; top: 500px; float:left; margin-left: 135px;">
</span>
<!-- Arrow Right -->
<span u="arrowright" class="jssora03r" style="width: 55px; height: 55px; top: 500px; float:left; margin-left: 910px;">
</span>
<!-- Arrow Navigator Skin End -->
答案 0 :(得分:3)
请将2个箭头放在'slider1_container'中。
<div id="slider1_container">
<!-- Slides Container -->
<div u="slides" style="cursor: move; position: relative; overflow: hidden; left: 0px; top: 0px; width: 700px; height: 400px;">
<div><img u="image" src="@appRoot/images/Slider/camp1.jpg" /></div>
<div><img u="image" src="@appRoot/images/Slider/camp2.jpg" /></div>
<div><img u="image" src="@appRoot/images/Slider/camp3.jpg" /></div>
</div>
<!-- Arrow Navigator Skin Begin -->
<!-- Arrow Left -->
<span u="arrowleft" class="jssora03l" style="width: 55px; height: 55px; top: 500px; float:left; margin-left: 135px;"></span>
<!-- Arrow Right -->
<span u="arrowright" class="jssora03r" style="width: 55px; height: 55px; top: 500px; float:left; margin-left: 910px;"></span>
<!-- Arrow Navigator Skin End -->
</div>
<script>
jQuery(document).ready(function ($) {
var options = {
$ArrowNavigatorOptions: {
$Class: $JssorArrowNavigator$,
$ChanceToShow: 2
}
};
var jssor_slider1 = new $JssorSlider$('slider1_container', options);
});
</script>