Bootstrap-轮播图-No.2

mac2022-06-30  117

<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="X-UA-Compatible" content="ie=edge" /> <title>Document</title> <link rel="stylesheet" type="text/css" href="../../css/bootstrap.css"/> <script src="../../js/jquery-1.11.2.min.js" type="text/javascript" charset="utf-8"></script> <script src="../../js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script> </head> <body> <!-- 作者:bilaisheng@163.com 时间:2017-10-16 描述:bootstrap插件 ,由别人定义好jquery插件技术进行开发,插件是没有办法仅通过CSS就能控制 而是通过js/jquery 控制. 必须引入jquery/bootstrap.min.js --> <style type="text/css"> .mt50{margin-top: 50px;} .carousel-inner >.item img{width: 100%;height: 300px;} </style> <div class="container mt50"><!--viewport视口 1170px--> <div class="carousel slide" data-ride="carousel" data-wrap="true" data-pause="hover" data-interval="1000"> <div class="carousel-inner"> <div class="item active"> <img src="http://img-cdn2.luoo.net/site/201710/59df32615f7cf.jpg"/> </div> <div class="item"> <img src="http://img-cdn2.luoo.net/site/201710/59db18dd28759.jpg"/> </div> <div class="item"> <img src="http://img-cdn2.luoo.net/site/201710/59ddf17c9ce1e.jpg"/> </div> </div> </div> </div> </body> </html>

转载于:https://www.cnblogs.com/bilaisheng/p/10210945.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)