我使用引导程序,页面宽度不固定。其他内容的位置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