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:
center
;
}
点击上面的属性值然后查看效果
edu.jb51.net
- 测试