跳转练习:https://www.runoob.com/try/try.php?filename=trycss3_js_justify-content
![](https://img-blog.csdnimg.cn/img_convert/48ea1612d0ec67c8d1192ae6ecc1c969.png)
justify-content: space-between;
均匀排列每个元素,首个元素放置于起点,末尾元素放置于终点
![](https://img-blog.csdnimg.cn/img_convert/047c4a1cd770cb3203b1395febbb7415.png)
justify-content: space-around;
均匀排列每个元素,每个元素周围分配相同的空间
![](https://img-blog.csdnimg.cn/img_convert/db66efe4f5d9d02868fd598544541d18.png)
justify-content: space-evenly;
均匀排列每个元素,每个元素之间的间隔相等
(注意与space-around区别,主要在首尾不同,space-around每个元素周围时0.5,故相邻元素之间为1,首尾元素0.5;space-evenly无论是首尾还是间隔都是1)
https://codingfantasy.com/games/flexboxadventure/play的第四与第五关很相近
![](https://img-blog.csdnimg.cn/img_convert/cd3cdfcc13adb3f8097241749db0723f.png)
justify-content: flex-start;
顾名思义
![](https://img-blog.csdnimg.cn/img_convert/989bd5743eea774e934c49606f7247f5.png)
justify-content: flex-end;