49 lines
644 B
CSS
49 lines
644 B
CSS
![]() |
* {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
font-size: 14px;
|
||
|
}
|
||
|
|
||
|
a {
|
||
|
outline: none;
|
||
|
text-decoration: none;
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
ul,
|
||
|
li {
|
||
|
list-style: none;
|
||
|
}
|
||
|
|
||
|
/*.dr-home */
|
||
|
.dr-home {
|
||
|
display: flex;
|
||
|
flex-direction: column; /* 容器内元素从上至下排列 */
|
||
|
height: 100vh;
|
||
|
}
|
||
|
|
||
|
.dr-home .header {
|
||
|
display: flex;
|
||
|
height: 55px;
|
||
|
background: #393d49;
|
||
|
}
|
||
|
|
||
|
.dr-home .main {
|
||
|
display: flex;
|
||
|
height: calc(100vh - 55px); /* 减去 header 高度 */
|
||
|
}
|
||
|
|
||
|
.dr-home .main .side {
|
||
|
width: 200px;
|
||
|
background: #545c64;
|
||
|
}
|
||
|
|
||
|
.dr-home .main .content {
|
||
|
padding: 5px;
|
||
|
flex: 1;
|
||
|
overflow-y: auto;
|
||
|
}
|