我用Flexslider创建了一个滑块,我正在尝试使用manualControls:创建导航菜单,但链接不起作用.这是flexslider和滑块/导航本身的代码:
Flexslider:
<script type="text/javascript" charset="utf-8"> $(window).load(function() { $('.flexslider').flexslider({ controlsContainer: ".slidercontainer",controlNav: true,manualControls: ".flex-control-nav li",}); }); </script>
滑块和导航:
<div class="slidercontainer"> <div class="flexslider"> <ul class="slides"> <li>slide1</li> <li>slide2</li> </ul> <ul class="flex-control-nav"> <li>1</li> <li>2</li> </ul> </div> </div>