<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="scripts/responsiveslides.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(".rslides").responsiveSlides({
speed: 1000,
maxwidth:1060
});
</script>
<div class="container">
<ul class="rslides">
<li><img src="graphics/img1.png" alt=""></li>
<li><img src="images/img2.png" alt=""></li>
<li><img src="images/img3.png" alt=""></li>
</ul>
</div>
.rslides {
position:relative;
list-style:none;
overflow:hidden;
width:100%;
padding:0;
margin:0;
}
.rslides li {
-moz-border-backface-visibility:hidden;
-o-border-backface-visibility:hidden;
-webkit-backface-visibility:hidden;
border-backface-visibility:hidden;
position:absolute;
display:none;
width:100%;
left:0;
top:0;
}
.rslides li:first-child {
position:relative;
display:block;
float:left;
}
.rslides img {
display:block;
height:auto;
float:left;
width:100%;
border:0;
}
这是我从网站 rslides完全复制的代码,但不知何故它运行不正确:它只显示第一张图像。