bootstrap 响应式图片自适应图片大小
<img src=
"..."
class=
"img-responsive center-block"
>
或者
$(window).load(
function
(){
$(
".panel-body img"
).addClass(
"img-responsive center-block"
);
})
我的应用
<img id="logo" src="../../assets/pic/home/logo.png" >
#logo{
display: block;
max-width: 100%;
height: 40px;
}