幻灯片图像在移动设备上正确缩放(响应式)但是当我在桌面上调整窗口大小时我不希望它们缩小
.slideshow-wrapper{
width:100%;
max-width:980px; //this is the original width of image
}
#slideshow{
clear:both;
z-index:-5;
width:100%;
}
#slideshow img{
width:100%;
height:auto;
}
jQuery.each(slideArray, function(index,value) { $("<img src='img/slides/"+value+"'
width='980' height='450'>").appendTo("#slideshow");
});
<div class="slideshow-wrapper">
<div id="slideshow"> </div>
</div>