CSS 属性:
align-items:
flex-start
flex-end
stretch
baseline
center
initial
结果:
RED
BLUE
Green div with more content.
CSS 代码:
div#main
{
display:flex;
align-items:
stretch
;
}
点击上面的属性值然后查看效果
简单教程
- 范例