CSS/Flex:修订间差异
来自康健生活
< CSS
| 第3行: | 第3行: | ||
== 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> | ||
2020年7月11日 (六) 09:02的版本
引言
标题文字
error
- flex 向右边对齐
- 在设置靠右对齐时,一定要设置左边对齐为自动
justify-content: flex-end; margin-left: auto;
No categories