方法 .parent{display:flex;justify-content:center;} 这是我总结的不定宽度和高度,水平居中和垂直居中的解决方案,有兴趣可以研究一下。 https://www.cnblogs.com/liujiekun/p/9511707.html
你是要.wrap元素的height: 100%;生效吧。 需要设置 html, body { height: 100%; }
61,112
社区成员
60,730
社区内容
加载中
试试用AI创作助手写篇文章吧