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