本文实例为大家分享了jQuery实现带进度条轮播图的具体代码,供大家参考,具体内容如下
1.html模块
2.css模块
*{ margin: 0; padding: 0; list-style: none; } .banner{ width: 100%; height: 600px; position: relative; } ul li{ width: 100%; height: 600px; position: absolute; top: 0; left: 0; overflow:hidden; } ul li img{ width: 100%; height: 600px; position: absolute; left: -100%; } .nav{ width: 100%; height: 70px; background: rgba(255,255,255,0.3); position: absolute; bottom: 0; } .bar{ width: 80%; height: 3px; background-color: #999; position: absolute; bottom: 0; left: 10%; } .bar p{ width: 0px; height: 3px; background-color: green; }
3.jQuery模块
4.方法二
带进度条的轮播图 *{ margin: 0; padding: 0; list-style: none; } .box{ width: 100%; height: 630px; position: relative; } .cont{ width: 100%; height: 630px; position: relative; overflow: hidden; } .cont li{ width: 100%; height: 630px; position: absolute; top: 0; left: 0; } .bar{ width: 70%; height: 3px; position: absolute; bottom: 0px; left: 15%; background-color: white; border-radius: 50px; } .bar span{ width: 0px; display: block; height: 80%; background-color: green; border-radius: 50px; } .cont li img{ width: 100%; height: 630px; position: absolute; left: -100%; top: 0; } .con1{ background: url(img/bg1.jpg) center; } .con2{ background: url(img/bg2.jpg) center; } .con3{ background: url(img/bg3.jpg) center; } .pav{ width: 100%; height: 70px; position: absolute; bottom: 0px; background-color: rgba(255,255,255,0.3); }
精彩专题分享:jQuery图片轮播 Javascript图片轮播 Bootstrap图片轮播
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持考高分网。



