Bootstrap's deployment usel works with dropload. js to implement sliding switching between images on mobile terminals,
A slideshow can jump to the previous or next one by clicking the button. On the Mobile End, we often use sliding to achieve some time. How can we achieve this.
The following describes how to use bootstrap's pluusel and dropload. js (mobile push and refresh plug-ins.
HTML section
<div id="goods_lunbo" style="width:200%;overflow:hidden;margin-left:-50%;"> <div id="goods_lunbo2" style="width:50%;overflow:hidden;margin:0 auto;"> <div id="carousel-example-generic0" class="carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#carousel-example-generic0" data-slide-to="0" class="active"></li> <li data-target="#carousel-example-generic0" data-slide-to="1"></li> <li data-target="#carousel-example-generic0" data-slide-to="2"></li> </ol> <!-- Wrapper for slides --> <div class="carousel-inner" id="carousel-inner-z" role="listbox"> <div class="item active"> <!--<div class="carousel-caption"></div>--> </div> <div class="item"> <!--<div class="carousel-caption"></div>--> </div> <div class="item"> <!--<div class="carousel-caption"></div>--> </div> </div> </div> </div> </div>
JS Section
Var invalid usel _ = $ ("# carousel-example-generic0"); $ ("# goods_lunbo "). touchwipe ({ReferenceMaterial: "# goods_lunbo2", // sets the div distance: 100, // indicates the sliding distance from wipeLeftFn: function () {console. log ("Zuo zuozo"); carousel _. carousel ('prev');}, // move the screen wipeRightFn: function () {console. log (""); carousel _. carousel ('Next') ;}, // sliding the screen to the right nowipe: function (){}});
The above section describes how Bootstrap's deployment usel works with dropload. js enables moving and switching images on the mobile end. I hope this will help you. If you have any questions, please leave a message and I will reply to you in a timely manner. Thank you very much for your support for the help House website!