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!