引入
<link href="css/royalslider.css" rel="stylesheet"> <script src="js/jquery-1.8.3.min.js"></script> <script src="js/jquery.royalslider.min.js"></script> <link href="css/reset.css" rel="stylesheet"> <link href="css/rs-minimal-white.css" rel="stylesheet">
<script> jQuery(document).ready(function($) { $('#full-width-slider').royalSlider({ arrowsNav: true, loop: false, keyboardNavEnabled: true, controlsInside: false, imageScaleMode: 'fill', arrowsNavAutoHide: false, autoScaleSlider: true, autoScaleSliderWidth: 960, autoScaleSliderHeight: 350, controlNavigation: 'bullets', thumbsFitInViewport: false, navigateByClick: true, startSlideId: 0, autoPlay: false, transitionType:'move', globalCaption: true, deeplinking: { enabled: true, change: false }, imgWidth: 1400, imgHeight: 680 }); }); </script>