CSS/Flex:修订间差异
来自康健生活
< CSS
| (未显示同一用户的1个中间版本) | |||
| 第1行: | 第1行: | ||
== 引言 == | == 引言 == | ||
== | == 轴 == | ||
== error == | == error == | ||
* flex 向右边对齐 | * flex 向右边对齐 | ||
*: 在设置靠右对齐时,一定要设置左边对齐为自动 | |||
*: <syntaxhighlight lang="css"> | *: <syntaxhighlight lang="css"> | ||
justify-content: flex-end; | justify-content: flex-end; | ||
margin-left: auto;</syntaxhighlight> | margin-left: auto;</syntaxhighlight> | ||
2022年8月14日 (日) 11:48的最新版本
引言
轴
error
- flex 向右边对齐
- 在设置靠右对齐时,一定要设置左边对齐为自动
justify-content: flex-end; margin-left: auto;
No categories