The practical application _javascript technique of Bootstrap to realize the carousel graph

Source: Internet
Author: User

I did it with Bootstrap, it's simple.

Just copy that piece of code into Webstorm.

I'm going to use one of my assignments to actually explain what it means to be in a certain section.

(Because of what this code means the teacher has not taught me to understand the wrong place to look Haihan)

"Boyfriend Autumn put on the new" This place is a carousel altogether 3 small dots is three pictures can be flipped by the left and right arrows

Next, give the source code: and explain the parts after the code

 <div class= "col-md-9 Lunbo" > <div id= "carousel-example-generic" class= "Carousel Slide" data-ride= "Carousel" s tyle= "Margin-top:1.4285rem" > <!--indicators--> <ol class= "carousel-indicators" style= "Margin-left:-2  0rem "> <li data-target=" #carousel-example-generic "data-slide-to=" 0 "class=" active "> </li> here Specify the order of play 3 Li stands for 3 dots A small point is a picture <li data-target= "#carousel-example-generic" data-slide-to= "1" ></li> <li dat  
 a-target= "#carousel-example-generic" data-slide-to= "2" ></li> </ol> <!--wrapper for slides--> <div class= "Carousel-inner" > here is Figure 3 to play <div class= "Item Active" > Here the active corresponds to the small dot above active <i MG src= "Three groups of projects/PC/PC home/lunbo1.jpg" alt= "..." style= "Width:64rem;height:31.9285rem" > <div class= "carousel-captio N "></div> </div> <div class=" item >  <div class=" carousel-caption "></div> </div> <div class=" Item "> &L T;img src= "Three groups of items/PC/PC home/lunbo3.jpg" alt= "style=" Width:64rem;height:31.9285rem "> <div class=" carousel-cap tion "></div> </div> </div> <!--Controls--> This is right around the two arrows <a class=" left Carouse L-control "href=" #carousel-example-generic "data-slide=" prev "> Turn <span class=" Glyphicon Glyphicon-chevron-left "></span> </a> <a class=" right Carousel-control "href=" #carousel-example-ge Neric "data-slide=" Next "> Turn <span class=" Glyphicon glyphicon-chevron-right "></span> </a>  ;/div> </div>

If you need only two graphs, then change your code to delete a picture a dot and change the dot there.

The number in the data-slide-to= "0" here is a figure of 0.

The above is a small set to introduce the bootstrap through the implementation of the application of the carousel map, I hope to help you, if you have any questions welcome to my message, small series will promptly reply to everyone!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.