首页 > 代码库 > bootstrap 轮播插件
bootstrap 轮播插件
在公司实习无聊中。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | <!DOCTYPE html> <html> <head> <title>toggle</title> <meta name= "viewport" content= "width=device-width,initial-scale=1.0" > <link rel= "stylesheet" href=http://www.mamicode.com/ "css/bootstrap.min.css" media= "screen" > <style type= "text/css" > #myCarousel{ margin:0 auto; width:500px; } </style> </head> <body> <div id= "myCarousel" class = "carousel slide" > <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> <div class = "carousel-inner" > <div class = "active item" ><img src=http://www.mamicode.com/ "images/1.jpg" /></div> <div class = "item" ><img src=http://www.mamicode.com/ "images/2.jpg" /></div> <div class = "item" ><img src=http://www.mamicode.com/ "images/3.jpg" /></div> <div class = "item" ><img src=http://www.mamicode.com/ "images/4.jpg" /></div> <div class = "item" ><img src=http://www.mamicode.com/ "images/5.jpg" /></div> </div> <a class = "carousel-control left" href=http://www.mamicode.com/ "#myCarousel" data-slide= "prev" >?</a> <a class = "carousel-control right" href=http://www.mamicode.com/ "#myCarousel" data-slide= "next" >?</a> </div> <script src=http://www.mamicode.com/ "scripts/jquery-1.10.2.js" ></script> <script src=http://www.mamicode.com/ "scripts/bootstrap.min.js" ></script> </body> </html> |
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。