class=carousel slide data-ride=carousel style=margin-top 75px;
This code snippet is for a carousel slide that will automatically start sliding through the images. The carousel has a margin-top of 75 pixels.
Here's an example of how this code can be used in HTML:
<div id="myCarousel" class="carousel slide" data-ride="carousel" style="margin-top: 75px;">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
<!-- Slides -->
<div class="carousel-inner">
<div class="item active">
<img src="image1.jpg" alt="Image 1">
</div>
<div class="item">
<img src="image2.jpg" alt="Image 2">
</div>
<div class="item">
<img src="image3.jpg" alt="Image 3">
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#myCarousel" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="sr-only">Next</span>
</a>
</div>
This code creates a carousel slide with three images and navigation controls (previous and next) to switch between the images. The style attribute sets the margin-top to 75 pixels
原文地址: http://www.cveoy.top/t/topic/hyf3 著作权归作者所有。请勿转载和采集!