查找 Flexbox Mistake
找错误 简单
题目
项是 不 laying out as 行. 查找 and fix mistake.
代码
.container {
flex-direction: row;
justify-content: center;
}
提示
Flexbox 需要特定 display 值到 activate.
解释
容器是 missing 'display: flex'. 不使用它, flex-方向 and justify-内容有 否副作用 — 容器 behaves as normal 块元素. 添加 'display: flex;' 到 activate flexbox 布局.
相关资源
相关课程
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。