阅读背景:

父级div高固定 子级两个div上下 上边div高固定 下边自适应

来源:互联网 
<div class= "container">
    <div class="left"></div>
    <div class="right"></div>
</div>

<style>
    .container{
		position: relative;
		width: 200px;
		height: 600px;
		border: 1px solid red;
    }
    .left{
        width:100%;
		height:200px;
		background: gray;
    }
    .right{
		position: absolute;
		width: 100%;
		top: 200px;
		bottom: 0;
		left: 0;
        background: green;
    }
</style><div class= "container">
    <div class="left">



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: