This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.demo{ | |
/*flex布局(作用于容器)*/ | |
display: flex; | |
/*项目拉伸对齐,也就是所左边的高度为拉伸到和右边等高,默认是拉伸的*/ | |
/*align-items: stretch;*/ | |
} | |
.demo .left{ | |
/*左边固定宽度,必须设置其最小宽度和最大宽度*/ |