61,112
社区成员
发帖
与我相关
我的任务
分享
<style>
#leftside {
width: 200px;
position: absolute;
height: 100%;
top: 0;
left: 0;
bottom: 0;
background-color: #ccc;
}
#rightside {
position: absolute;
height: 100%;
top: 0;
left: 200px;
right: 0;
bottom: 0;
}
</style>
<div id="leftside">
<p>1111111111111111111111111</p>
<p>222222222222222222</p>
</div>
<div id="rightside">
<p>333333333333333</p>
<p style="padding-top:1000px">为了省去写多行,直接用padding-top:1000px代替了</p>
</div>