Bootstrap picture Auto Carousel Effect Chart:
Code implementation:
<linkrel= "stylesheet" href= "Bootstrap.min.css"/>
<linkrel= "stylesheet" href= "Bootstrap-theme.min.css"/>
<scriptsrc= "Jquery.min.js" ></script>
<scriptsrc= "Bootstrap.min.js" ></script>
#div1 {width:600px; height:500px}
<divid= "Carousel-example-generic" class= "Carousel Slide" data-ride= "Carousel" >
<olclass= "Carousel-indicators" >
<lidata-target= "#carousel-example-generic" data-slide-to= "0" class= "active" ></li>
<lidata-target= "#carousel-example-generic" data-slide-to= "1" ></li>
<lidata-target= "#carousel-example-generic" data-slide-to= "2" ></li>
<!--wrapper for slides-->
<divclass= "Carousel-inner" role= "ListBox" >
<divclass= "Item Active" >
<aclass= "left Carousel-control" href= "#carousel-example-generic" role= "button" data-slide= "prev" >
<spanclass= "Glyphicon glyphicon-chevron-left" id= "Aaron1" ></span>
<spanclass= "Sr-only" >Previous</span>
<aclass= "Right Carousel-control" href= "#carousel-example-generic" role= "button" data-slide= "Next" >
<spanclass= "Glyphicon glyphicon-chevron-right" id= "Aaron2" ></span>
<spanclass= "Sr-only" >Next</span>
|
The above code can realize the DIV1 in the picture Automatic Carousel, the carousel time default 5000ms.