我想创建一个全站点布局,我可以在其中创建subdivs到预先指定的位置,而无需定位设置。修改div div的出现区域
我已经创建了一个顶部,左边和底部的包装,它应该始终是固定的。 示例如下:
我要的是做任何的div,继前/左包装出现低于收入和leftwrapper。
<div id="topwrapper">hej</div>
<div id="leftwrapper">hej2</div>
<div><p>I want this div to start within the topleft corner of the white area, without any positioning settings</p></div>
<div id="bottomwrapper">hej3</div>
#topwrapper {
position:fixed;
width:100%;
height: 100px;
background-color:blue;
color:white;
}
#leftwrapper {
position:fixed;
width: 20%;
height:100%;
background-color:grey;
color:white;
top:100px;
}
#bottomwrapper {
position:fixed;
width:100%;
height:50px;
background-color: orange;
color:white;
bottom:0px;
}
请更好地解释你想达到 – kapantzak 2014-12-02 11:40:27