header
和footer
有自己的子元素,使用flex-direction
属性可以把这些子元素排成行。这个属性告诉 CSS 需要将这些子元素水平排列。
header
和footer
添加 CSS 属性flex-direction
并把值设为 row。
header
应有flex-direction
属性,其值应为 row。'
testString: assert(code.match(/header\s*?{[^}]*?flex-direction:\s*?row;/g));
- text: 'footer
应有flex-direction
属性,其值应为 row。'
testString: assert(code.match(/footer\s*?{[^}]*?flex-direction:\s*?row;/g));
```
I meet so many people who are in search of that one trick that will help them work smart. Even if you work smart, you still have to work hard.
1:32 PM - 12 Jan 2018