Without learning JS can also be used bootstrap to make the actual application of the carousel diagram

Source: Internet
Author: User

I haven't learned JS since I'm a novice

I did it with Bootstrap, it's simple, just copy that code into Webstorm.

I'm going to use one of my assignments to do the actual explanation.

(because this code exactly what meaning teacher did not teach me to understand the wrong place to see Haihan) "Boyfriend Autumn put on the new" This place is a carousel altogether 3 small points that is three pictures can be left and right arrows around to flip

Then the source code: And after the code to explain the various parts

<div class= "Col-md-9 Lunbo" >
<div id= "Carousel-example-generic" class= "Carousel Slide" data-ride= "Carousel" style= "Margin-top:1.4285rem" >
<!--indicators--
<ol class= "carousel-indicators" style= "Margin-left: -20rem" >
<li data-target= "#carousel-example-generic" data-slide-to= "0" class= "active" ></li> here set play Order 3 Li for 3 dots Dot a small dot is a picture
<li data-target= "#carousel-example-generic" data-slide-to= "1" ></li>
<li data-target= "#carousel-example-generic" data-slide-to= "2" ></li>
</ol>

<!--Wrapper for slides--
<div class= "Carousel-inner" > here is the picture to play 3
<div class= "Item Active" > here active corresponds to the small dot on the 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>

<!--Controls--Here's the two arrows around.
<a class= "left Carousel-control" href= "#carousel-example-generic" data-slide= "prev" > Rollover
<span class= "Glyphicon glyphicon-chevron-left" ></span>
</a>
<a class= "Right Carousel-control" href= "#carousel-example-generic" data-slide= "Next" > Rollover
<span class= "Glyphicon glyphicon-chevron-right" ></span>
</a>
</div>
</div>

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

data-slide-to= "0" the number of the numbers  here is only an example of the number of 0.  

Can

Without learning JS can also be used bootstrap to make the actual application of the carousel diagram

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.