main.css
378 Bytes
@import url(https://www.layuicdn.com/layui/css/layui.css);
.app {
display: flex;
flex-direction: column;
}
header {
flex-shrink: 0;
height: 60px;
}
.content {
flex: 1;
overflow-y: auto;
height: calc(100vh - 60px);
background-color: #f8f8f8;
}
main {
min-height: calc(100% - 30px);
}
footer {
height: 30px;
background-color: red;
}