0
<div id='wrap'>
<img id='eleph01' src='img/eleph01.gif' alt='elephant'>
<img id='eleph02' src='img/eleph01.gif' alt='elephant'>
<img id='eleph03' src='img/eleph01.gif' alt='elephant'>
</div>
CSS显示亚麻改变图像高度
#wrap{
display:flex;
justify-content:space-between;
}
#eleph01{
width:200px;
}
#eleph02{
width:150px;
}
#eleph03{
width:100px;
}
为什么图像失真到相同的高度?我需要保持它们的高宽比,并将它们水平分布。
非常感谢。解决了 – bonaca