jquery的bxslider怎么用
1个回答
展开全部
调用:
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.bxslider.js"></script>
$(function(){
$('#marquee').bxSlider({
mode:'vertical', //默认的是水平
displaySlideQty:1,//显示li的个数
moveSlideQty: 1,//移动li的个数
captions: true,//自动控制
auto: true,
controls: false//隐藏左右按钮
});
});
<div style="width:450px; height:296px; float:left; overflow:hidden; margin-left:200px;">
<ul id="marquee">
<li><img src="img/1.jpg" alt="banner_腋臭" style="width:450px; height:296px;"></li>
<li><img src="img/2.jpg" alt="banner_腋臭" style="width:450px; height:296px;"></li>
</ul>
</div>
.bx-prev{ width:12px; height:26px; background:#f00;text-indent: -999999px;z-index: 999; position: absolute; float:left; left:455px; top:110px;}
.bx-next{ width:12px; height:26px; background:#f00; text-indent: -999999px;z-index: 999; position: absolute; top:110px;left:-15px;}
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.bxslider.js"></script>
$(function(){
$('#marquee').bxSlider({
mode:'vertical', //默认的是水平
displaySlideQty:1,//显示li的个数
moveSlideQty: 1,//移动li的个数
captions: true,//自动控制
auto: true,
controls: false//隐藏左右按钮
});
});
<div style="width:450px; height:296px; float:left; overflow:hidden; margin-left:200px;">
<ul id="marquee">
<li><img src="img/1.jpg" alt="banner_腋臭" style="width:450px; height:296px;"></li>
<li><img src="img/2.jpg" alt="banner_腋臭" style="width:450px; height:296px;"></li>
</ul>
</div>
.bx-prev{ width:12px; height:26px; background:#f00;text-indent: -999999px;z-index: 999; position: absolute; float:left; left:455px; top:110px;}
.bx-next{ width:12px; height:26px; background:#f00; text-indent: -999999px;z-index: 999; position: absolute; top:110px;left:-15px;}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询