box:header和content
.box {
height: 100%;
padding-top: 50px;
position: relative;
z-index: 1;
}
.header {
height: 50px;
position: absolute;
top: 0;
left: 0;
right: 0;
z-index: 1;
}
.content {
// 继承父元素高度
height: 100%;
}
box:header和content
.box {
height: 100%;
padding-top: 50px;
position: relative;
z-index: 1;
}
.header {
height: 50px;
position: absolute;
top: 0;
left: 0;
right: 0;
z-index: 1;
}
.content {
// 继承父元素高度
height: 100%;
}