Article 10 BootStrap carousel plug-in usage details, Article 10 bootstrap

Source: Internet
Author: User

Article 10 BootStrap carousel plug-in usage details, Article 10 bootstrap

The Bootstrap carousel plug-in is a flexible and responsive way to add a slider to a site. In addition, the content is flexible enough, including images, embedded frames, videos, and any other types of content you want to place.

You can use the bootstrap carousel plug-in to add a slider to the site. The content can be images, embedded frameworks, videos, or any other content. To use the carousel plug-in, you need to introduce bootstrap. min. js.

Let's show you the implementation code. If you feel pretty good, please refer to the implementation code.

As follows:

The key code is as follows:

<Div id = "carousel-example-generic" class = "carousel slide" data-ride = "carousel"> <! -Carousel navigation --> <ol class = "carousel-indicators"> <li data-target = "# carousel-example-generic" data-slide-to = "0" class = "active"> </li> <li data-target = "# carousel-example-generic" data-slide-to = "1"> </li> <li data- target = "# carousel-example-generic" data-slide-to = "2"> </li> </ol> <! -Carousel project --> <div class = "carousel-inner" role = "listbox"> <div class = "item active">  <div class =" carousel-caption "> ffffffff </div> <div class =" item ">  <div class =" carousel-caption "> xxxxxxxxxxxxxx </div> <div class =" item ">  <div class =" carousel-caption "> mmmmmmmmmmmm </div> <! -Carousel navigation --> <a class = "left carousel-control" href = "# carousel-example-generic" role = "button" data-slide = "prev"> <span class = "glyphicon-chevron-left"> </span> <span class = "sr-only"> Previous </span> </a> <a class = "right carousel-control "href =" # carousel-example-generic "role =" button "data-slide =" next "> <span class =" glyphicon-chevron-right "> </span> <span class = "sr-only"> Next </span> </a> </div>

The above is a detailed description of the use of the BootStrap carousel plug-in Article 10. I hope it will be helpful to you. If you have any questions, please leave a message for me, the editor will reply to you in a timely manner. Thank you very much for your support for the help House website!

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.