.left {
float: left;
width: calc(100% - 200px);
height: 100%;
background-color: red;
}
.right {
float: left;
width: 200px;
height: 100%;
background-color: blue;
}
用calc来计算位置,本例子中是右侧固定200,左侧(其余空间-200)
.left {
float: left;
width: calc(100% - 200px);
height: 100%;
background-color: red;
}
.right {
float: left;
width: 200px;
height: 100%;
background-color: blue;
}
用calc来计算位置,本例子中是右侧固定200,左侧(其余空间-200)