Quickly build a conveyor belt using Bootstrap and build a conveyor belt using bootstrap

Source: Internet
Author: User

Quickly build a conveyor belt using Bootstrap and build a conveyor belt using bootstrap

Bootstrap Introduction

Bootstrap is a framework that is widely used in front-end development. It was one of the earliest tools within Twitter and was quickly recognized by all parties after being open-source. This book is based on the latest Bootstrap 3. After a brief introduction to installation and configuration, it goes straight to the topic, he discussed several representative application cases, including personal work sites, WordPress Themes, corporate websites, e-commerce websites, and single-page marketing websites, combined with these cases, we carefully analyzed Bootstrap's usage methods and techniques of LESS.

If so many things are mentioned, let's take a look at the bootstrap code to build a conveyor belt.

Progress indicator

<div id="homepage-feature" class="carousel slide"><ol class="carousel-indicators"><li data-target="#homepage-feature" data-slide-to="0" class="active"></li><li data-target="#homepage-feature" data-slide-to="1" ></li><li data-target="#homepage-feature" data-slide-to="2" ></li><li data-target="#homepage-feature" data-slide-to="3" ></li></ol>

The data-target attribute of the Progress indicator must use the ID homepage-featureJS plug-in of the conveyor belt to add an active class to the conveyor belt.

<div class="carousel-inner"><div class="item active"></div><div class="item "></div>...</div>

Then, display the previous and last buttons.

<a class="left carousel-control" href="#homepage-feature" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a><a class="right carousel-control" href="#homepage-feature" data-slide="next"><span class="glyphicon glyphicon-chevron-left"></span></a></div>

That's good. The above content is the introduction of Bootstrap to build a conveyor belt. I hope it will be helpful to you. Thank you very much for your support for the help House website!

Related Article

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.