header
和footer
具有可以使用flex-direction
属性排列为行的子项。这告诉CSS水平对齐孩子。 flex-direction
添加到header
和footer
,并将值设置为row。 header
应该将flex-direction
属性设置为row。
testString: 'assert(code.match(/header\s*?{[^}]*?flex-direction:\s*?row;/g), "The header
should have a flex-direction
property set to row.");'
- text: footer
应将flex-direction
属性设置为row。
testString: 'assert(code.match(/footer\s*?{[^}]*?flex-direction:\s*?row;/g), "The footer
should have a flex-direction
property set to row.");'
```
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