我想創建一個全站點佈局,我可以在其中創建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