cssTable布局:table布局
布局1:高度固定,左边宽度固定,右边自适应
<style>
.content-wrap {
display: table;
height: 100px;
width: 100%;
}
.content-left {
display: table-cell;
width: 300px;
background: red;
}
.content-right {
display: table-cell;
background: yellow;
text-align: center;
vertical-align: middle;
}
</style>
<div class = "content-wrap">
<div class = "content-left"></div>
<div class = "content-right">
<h1>利用table进行布局</h1&