Bootstrap轮播插件简单使用方法介绍

使用Bootstrap的轮播插件可以向站点添加滑块,内容可以是图像,内嵌框架,视频或其它任何内容,使用轮播插件需要引入

效果图:

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="https://www.jb51.net/~/images/Chrysanthemum.jpg" /> <div> ffffffff </div> </div> <div> <img src="https://www.jb51.net/~/images/Desert.jpg" /> <div> xxxxxxxxxxxxxxxx </div> </div> <div> <img src="https://www.jb51.net/~/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>

小编再为大家推荐一篇文章:全面解析Bootstrap图片轮播效果

如果大家还想深入学习,可以点击这里进行学习,再为大家附一个精彩的专题:Bootstrap学习教程

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wzsjjs.html