... bottom div .wrapperXXX { position: fixed; width: 100%; height: 100%; } .mainXXX { background-color: pink; height: 100%; } .bottomXXX { background-color: lime; } 效果: 窗口缩小时: 拉大时: