HTML中可能是这样的:
<div > <div > <!-- Your images over here --> </div></div>
使用此样式表:
.container-outer { overflow: scroll; width: 500px; height: 210px; }.container-inner { width: 10000px; }
$(document).ready(function() { var container_width = SINGLE_IMAGE_WIDTH * $(".container-inner a").length; $(".container-inner").css("width", container_width);});
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)