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