<div class="container"><img src=""/></div>
.container{width:400px;height:400px;}img{width:100%;height:100%;object-fit:contain}
图片设置宽高百分百,object-fit为contain即可
时间:2018-07-07 15:10:05
<div class="container"><img src=""/></div>
.container{width:400px;height:400px;}img{width:100%;height:100%;object-fit:contain}
图片设置宽高百分百,object-fit为contain即可