【发布时间】:2019-10-24 18:40:18
【问题描述】:
自从较新的 Chrome 版本 (75.0.3770.80) 以来,我网站上的图片很少被拉伸。
这些图像在一个 div 中,具有这些属性:
<div class="column">
<img
:src="insuranceLogo"
class="insurance"
>
<span>
{{ offer.offer_name }}
</span>
</div>
.column {
display: flex;
flex-direction: column;
align-items: center;
}
.insurance {
width: 100%;
max-width: 150px;
}
直到今天,它运行良好,但在新的 Chrome 版本中,我的图像都被拉伸了!
我在旧版 Chrome 上尝试过,没问题,所以我将其更新为新版本:结果相同,延长了。
我的解决方案是将我的 img 标签包装在一个 div 中。但我很想知道为什么这种行为会改变。
谢谢! :)
【问题讨论】:
标签: html css google-chrome flexbox