演示html<div id="slider" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#slider" data-slide-to="0" class="active">
</li>
<li data-target="#slider" data-slide-to="1" class="">
</li>
<li data-target="#slider" data-slide-to="2" class="">
</li>
<li data-target="#slider" data-slide-to="3" class="">
</li>
<li data-target="#slider" data-slide-to="4" class="">
</li>
</ol>
<div class="carousel-inner">
<div class="item active">
<a target="_blank" href="https://s.qiniu.com/yQVfQr">
<img src="https://dn-lego-static.qbox.me/1611832642-hudong.png">
<span class="carousel-caption">
新客专享,优惠大酬宾 </span>
<span class="carousel-bg">
</span>
</a>
</div>
<div class="item active">
<a target="_blank" href="https://www.tx47.cn/xcbk-498.html">
<img src="https://www.tx47.cn/content/uploadfile/201903/thum-47761553978947.png">
<span class="carousel-caption">
宝塔面板0.99买30天Linux专业版 </span>
<span class="carousel-bg">
</span>
</a>
</div>
<div class="item">
<a target="_blank" href="http://pay.4dn.net/">
<img src="http://4dn.net/img/3.png">
<span class="carousel-caption">
蜘蛛快付 </span>
<span class="carousel-bg">
</span>
</a>
</div>
<div class="item">
<a target="_blank" href="http://4dn.net">
<img src="http://4dn.net/img/2.png">
<span class="carousel-caption">
黑蜘蛛 </span>
<span class="carousel-bg">
</span>
</a>
</div>
<div class="item">
<a target="_blank" href="http://4dn.net/">
<img src="http://4dn.net/img/2.png">
<span class="carousel-caption">
蜘蛛博客 </span>
<span class="carousel-bg">
</span>
</a>
</div>
</div>
<a class="left carousel-control" href="#slider" role="button" data-slide="prev">
<span class="fa fa-angle-left" aria-hidden="true">
</span>
</a>
<a class="right carousel-control" href="#slider" role="button" data-slide="next">
<span class="fa fa-angle-right" aria-hidden="true">
</span>
</a>
</div>css/*幻灯片轮番*/
.category-job .header,.category-see .header,.page-template-pagesnavs-php .header,.page-template-pagestheme-php .header,.page-template-pagesthemes-php .header,.page-template-pagestools-php .header,.site-minicat .header{box-shadow:none;border-bottom:none;margin-bottom:0}
.carousel{border:1px solid #eaeaea;padding:2px;margin-bottom:10px}
.carousel-inner{width:100%}
.carousel-inner>.item{position:relative;display:none;text-align:center;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}
.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1;width:100%;height:340px;margin-bottom:-10px}
.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}
.carousel-inner>.active{left:0}
.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}
.carousel-inner>.next{left:100%}
.carousel-inner>.prev{left:-100%}
.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}
.carousel-inner>.active.left{left:-100%}
.carousel-inner>.active.right{left:100%}
.carousel-control{position:absolute;top:50%;left:2px;width:30px;height:50px;margin-top:-30px;font-size:20px;color:#fff;text-align:center;filter:alpha(opacity=35);opacity:.35;background-color:#000}
.carousel-control.right{right:2px;left:auto}
.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=70);outline:0;opacity:.7}
.carousel-control .fa-angle-left,.carousel-control .fa-angle-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;margin-top:-10px;left:12px;z-index:5;display:inline-block}
.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;margin-top:-10px;font-family:serif}
.carousel-control .icon-prev:before{content:'\2039'}
.carousel-control .icon-next:before{content:'\203a'}
.carousel-indicators{position:absolute;margin-bottom:0;bottom:0;right:12px;z-index:15;width:78%;height:47px;/* padding: 11px 0 0; */;text-align:right}
.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:15px 5px 0 0;text-indent:-999px;background-color:transparent;border:1px solid #fff;border-radius:10px}
.carousel-indicators .active{background-color:#fff}
.carousel-caption{position:absolute;right:0;bottom:0;left:0;z-index:10;text-align:left;padding:10px;margin-right:100px;overflow:hidden;color:#fff;font-size:16px}
.asb,.asb-your,.branding{text-align:center}
.carousel-bg{position:absolute;right:0;bottom:0;left:0;height:40px;z-index:9;background-color:#000;filter:alpha(opacity=70);opacity:.7}
.site-navbar li:hover,.topmenu li:hover{z-index:2}
.brand,.content,.sidebar,.site-navbar li{position:relative}
.carousel-caption .btn{text-shadow:none}
.carousel,.carousel-inner,.container,.header,.label{position:relative;overflow:hidden}
.carousel {padding: 10px;box-sizing: initial;background: #fff;}
评论
8条评论84745445 Lv.1 Chrome 86.0.4240.198 Windows 回复
不错不错,味道好极了
广东省广州市 电信
wjt246932 Lv.1 Chrome 86.0.4240.198 Windows 回复
支持一下,黑蜘蛛博客有你更精彩
中国 移动
腾讯视频 Lv.3 Chrome 94.0.4606.71 Windows 回复
支持一下,黑蜘蛛博客有你更精彩
甘肃省兰州市 电信
腾讯视频 Lv.3 Chrome 86.0.4240.198 Windows 7 x64 Edition 回复
看看
中国 移动
w770340211 Lv.3 Chrome 69.0.3947.100 Windows 回复
看起来好像不错的样子
北京市 移动
有人我工 Lv.1 回复
来看看了
山东省烟台市 联通
vivianna Lv.1 Chrome 89.0.4389.90 Windows 回复
支持一下,黑蜘蛛博客有你更精彩
广东省汕尾市陆丰县 移动
玫瑰 Lv.1 Chrome 86.0.4240.198 Windows 回复
不错,支持一下
河南省南阳市 联通