在img标签上添加一个class属性
class="img-responsive"
其所赋予的样式为:
.img-responsive {
display: block;
height: auto;
max-width: 100%;
}
如:
<img class="img-responsive" src="aaa/bbb/ccc.jpg"/>
有用就给个赞呗!
【精选秒杀】热卖云产品限量抢,云服务器20元/月起,服务稳定,价格更优
https://cloud.tencent.com/redirect.php?redirect=1039&cps_key=8ee0f9c89dfe0958071ea9b77e110670&from=console
淘宝优惠券: http://tq.xinrtd.com
京东优惠券: http://jp.xinrtd.com