ʹÓÃbootstrapµÄÂÖ²¥²å¼þ¿ÉÒÔÏòÕ¾µãÌí¼Ó»¬¿é£¬ÄÚÈÝ¿ÉÒÔÊÇͼÏñ£¬ÄÚǶ¿ò¼Ü£¬ÊÓƵ»òÆäËüÈκÎÄÚÈÝ£¬Ê¹ÓÃÂÖ²¥²å¼þÐèÒªÒýÈëbootstrap.min.js.
<div data-ride="carousel">
<!—ÂÖ²¥µ¼º½ -->
<ol>
<li data-target="#carousel-example-generic" data-slide-to="0"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>
<!—ÂÖ²¥ÏîÄ¿ -->
<div role="listbox">
<div>
<img src="~/images/Chrysanthemum.jpg" />
<div>
ffffffff
</div>
</div>
<div>
<img src="~/images/Desert.jpg" />
<div>
xxxxxxxxxxxxxxxx
</div>
</div>
<div>
<img src="~/images/Lighthouse.jpg" />
<div>
mmmmmmmmmmmm
</div>
</div>
</div>
<!—ÂÖ²¥µ¼º½ -->
<a href="#carousel-example-generic" role="button" data-slide="prev">
<span></span>
<span>Previous</span>
</a>
<a href="#carousel-example-generic" role="button" data-slide="next">
<span></span>
<span>Next</span>
</a>
</div>
Ч¹ûÈçÏÂ:
¡¡