<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;
}
关注公众号,了解更多it技术(it问答网)