用bootstrap进行轮播图的制作
来源:互联网 发布:冒险岛源码泄露 编辑:程序博客网 时间:2024/05/04 22:39
轮播图的制作
Bootstrap 轮播(Carousel)插件是一种灵活的响应式的向站点添加滑块的方式。除此之外,内容也是足够灵活的,可以是图像、内嵌框架、视频或者其他您想要放置的任何类型的内容。
<!DOCTYPE html><html lang="zh-cn"><head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>轮播图</title> <link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet" /></head><style> .carousel { height: 500px; } .carousel .item { height: 500px; } .carousel .item img { width: 100%; }</style><body><div id="carousel-example-generic" class="carousel slide" data-ride="carousel"> <!-- Indicators轮播指标 --> <ol class="carousel-indicators"> <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li> <li data-target="#carousel-example-generic" data-slide-to="1"></li> <li data-target="#carousel-example-generic" data-slide-to="2"></li> </ol> <!-- Wrapper for slides 轮播项目--> <div class="carousel-inner" role="listbox"> <div class="item active"> <img src="http://img.mukewang.com/5412ad400001e52014280484.jpg" alt="..."> <div class="carousel-caption"> 11 英寸 MacBook Air 充电一次可运行长达 9 小时,而 13 英寸机型则可运行长达 12 小时。 </div> </div> <div class="item"> <img src="http://img.mukewang.com/5412ad7c0001d2eb10880541.jpg" alt="..."> <div class="carousel-caption"> 无论是什么任务,配备 Intel HD Graphics 5000 图形处理器的第四代 Intel Core 处理器都能应对自如。 </div> </div> <div class="item"> <img src="http://img.mukewang.com/5412ae5c0001653b12800644.jpg" alt="..."> <div class="carousel-caption"> 有了新一代 802.11ac 技术,MacBook Air 令 Wi-Fi 速度超越极限。 </div> </div> </div> <!-- Controls --> <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left"></span> <span class="sr-only">Previous</span> </a> <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right"></span> <span class="sr-only">Next</span> </a></div><script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script><script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script></body></html>
0 0
- 用bootstrap进行轮播图的制作
- 用bootstrap 制作一个简洁美观的页面
- 利用Bootstrap制作一个流行的网页
- thinkphp+bootstrap制作的新闻系统
- Angularjs + Bootstrap 制作的一个TODO List
- Angularjs + Bootstrap 制作的一个TODO List
- 用bootstrap制作一个简单首页
- 对定制的Bootstrap进行修改
- 3款强大的BootStrap的可视化制作工具推荐
- 3款强大的BootStrap的可视化制作工具推荐
- Bootstrap 标签页制作
- bootstrap制作导航条
- Bootstrap 表格制作
- bootstrap--表格制作
- Bootstrap制作手机站的注意事项(一)
- Bootstrap+Html5制作强大的网页视频播放器
- Bootstrap 教程第三课:制作有图标的按钮
- bootstrap中常用的一些样式制作(自我总结)
- (三)小记——libxxx.so: cannot open shared object file: No such file or directory
- java框架概念
- agile-list 可变列表(Bootstrap)
- 快速找到JDK的历史版本
- asreml-r 在Jupyter中构建好的R平台中执行后保存为makedown作为csdn的博客来源的一个试验
- 用bootstrap进行轮播图的制作
- unity设置手机横屏方法和相关问题
- poi操作Excel 被bug坑了getLastRowNum,getPhysicalNumberOfRows,getPhysicalNumberOfCells,getLastCellNum
- JSPatch Convertor 实现原理详解
- 解决ViewPager调用notifyDataSetChanged()时,界面无刷新问题
- App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure.
- 在/external/tinyalsa/pcm.c 添加android log
- RMAN异机恢复快速参考
- 获得内核函数地址的四种方法