bootstrap 响应式图片自适应图片大小

<img class=”img-responsive center-block” src=”…” />

或:
$(window).load(function(){

$(“.panel-body img”).addClass(“img-responsive center-block”);

})

相关链接:bootstrap

点赞