.container没有效果是怎么回事?麻烦大佬看看,初学者懵逼
发布于 6 年前 作者 clin 6783 次浏览 来自 官方Issues
2 回复

使用了flex-direction属性,布局变为竖排,justify-content:center;align-items:center;上下左右居中。推荐看下阮一峰的flex布局教程

你这个应该是想要居中布局对吧?加个width:100%;justify-content不要写spance-around;也写center

回到顶部