This website requires JavaScript.
Explore
Help
Register
Sign In
greatbody
/
freeCodeCamp
mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
Watch
1
Star
0
Fork
You've already forked freeCodeCamp
0
Code
Issues
Projects
Releases
Wiki
Activity
24d1276f9c
freeCodeCamp
/
guide
/
chinese
/
certifications
/
responsive-web-design
/
css-flexbox
/
use-the-flex-direction-prop...
/
index.md
333 B
Raw
Blame
History
Unescape
Escape
title
localeTitle
Use the flex-direction Property to Make a Column
使用flex-direction属性创建列
使用flex-direction属性创建列
要将Flex容器的子元素堆叠在一起
,
您可以通过以下方式更改_flex方向_
:
#
main-container
{
display
:
flex
;
flex-direction
:
column
;
}