React里单页面div自适应浏览器高度占满屏幕 可以用绝对定位方式,让div占满屏幕,css样式如下: height: 100%; 100%; position: absolute; top: 0px; bottom: 0px;