flex-direction: column
时间: 2023-08-19 21:12:42 浏览: 106
flex-direction: column属性将主轴方向设置为垂直方向,起点在上沿。这意味着子元素将按照垂直方向从上到下排列。\[3\]在给父元素设置display: flex和flex-direction: column后,子元素将按照垂直方向从上到下排列。\[2\]
#### 引用[.reference_title]
- *1* *3* [CSS的flex布局详解](https://blog.csdn.net/qq_46124502/article/details/106518826)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [flex布局](https://blog.csdn.net/GJM_Memory/article/details/123216277)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文