文章目录 问题出现 解决方法 效果 height:100%和height:100vh的区别 问题出现 <style> .container{ display: flex; justify-content: center; align-items: center; } #box{ width: 100px; height: 100px; background-color: #1890FF; } <