.mainLayout { display: flex; height: 100vh; overflow: hidden; background-color: #e3e3e3; } .sider { margin-right: 8px; padding: 8px; background-color: white; // 圆角 border-radius: 5px; } .header { margin: 8px; padding: 8px 20px; background-color: white; height: 55px; // 圆角 border-radius: 5px; } .content{ background-color: white; display: flex; justify-content: center; border-radius: 5px; overflow: scroll; padding: 16px; } .mainContent { margin: 8px; margin-top: 0; height: calc(100% - 16px); background-color: #e3e3e3; border-radius: 5px; min-height: 500px; }