我使用引導程序,頁面寬度不固定。其他內容的位置div
我想顯示的接觸形式的div(下面灰色框)所示:
所以灰色接觸形式排序漂浮在藍色和白色的div。
謝謝!
這是我一直在努力做的事:不過你想要的外層div http://jsfiddle.net/w69j4xam/
<div class="header">
Header
</div>
<div class="content">
<div class="bluediv">
Some text here
</div>
<div class="whitediv">
Some more text here
</div>
<div class="contactform">
Contact Form<br/><br/><br/><br/>
</div>
</div>
body{
padding: 20px;
}
.header{
height: 50px;
background-color: green;
}
.content{}
.bluediv{
height: 150px;
background-color: #AFEEEE;
}
.whitediv{
height: 180px;
background-color: #FFF;
}
.contactform{
background-color: grey;
width: 100px;
position: absolute;
}
發表您的現有代碼 – 2014-10-10 19:26:33
'absolute' +'Z-index' – DaniP 2014-10-10 19:33:29