【bootstrap教程】Bootstrap学习笔记 轮播(Carousel)插件

时间:2021-07-31  来源:php框架模板  阅读:

Bootstrap 轮播(Carousel)插件是一种灵活的响应式的向站点添加滑块的方式。除此之外,内容也是足够灵活的,可以是图像、内嵌框架、视频或者其他您想要放置的任何类型的内容。如果您想要单独引用该插件的功能,那么您需要引用 carousel.js,或者bootstrap.js 或压缩版的 bootstrap.min.js。

 代码如下

 

 Bootstrap 轮播(Carousel)插件

 

 

 

 

<script src="js/jquery.min.js"></script>

 

<script src="js/bootstrap.min.js"></script>

 

 

 

 

 

 

 


     


       


         

         

         

         First slide

         

         

         

        Example headline.

         


         Note: If you're viewingthispage via a

          file://

         URL, the"next"and"previous"Glyphicon buttons on the left and right might not load/display properly due to web browser security rules.

         

         


         Sign up today

         

         

         

         

         

         

         

         

         

        Another example headline.

         


         Cras justo odio, dapibus ac facilisisin, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

         

         


         Learn more

         

         

         

         

         

         

         

         

         

        One moreforgood measure.

         


         Cras justo odio, dapibus ac facilisisin, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

         

         


         Browse gallery

         

         

         

         

         

         

         

         

         Previous

         

         

         

         Next

         

         

         

         


        注意:

         代码如下

          data格式的Url最直接的好处是,这些Url原本会引起一个新的网络访问,因为那里是一个网页的地址,现在不会有新的网络访问了,因为现在这里是网页的内容。这样做,会减少服务器的负载,当然同时也增加了当前网页的大小。所以对“小”数据特别有好处。

        效果图


        【bootstrap教程】Bootstrap学习笔记 轮播(Carousel)插件

        http://m.bbyears.com/jiaocheng/133183.html

        推荐访问:bootstrap面试题
相关阅读 猜你喜欢
本类排行 本类最新