📜  html css如何排列不同大小的图片 - CSS代码示例

📅  最后修改于: 2022-03-11 14:47:59.927000             🧑  作者: Mango

代码示例1
.flex-container {
    flex-flow: row;
    justify-content: space-between;
    align-items: flex-start; /* should align items to the top of your flex row if they don't reach 100px in height */
}
.inner-image {
    max-height: 100px;
}
.inner-image.portrait {
    height: 200px;
    width: 100px;
}
.inner-image.landscape {
    height: 100px;
    width: 200px;
}