-1
我要定义这样的布局:Twitter的引导3 - 布局
---------------------------------------------------------
| | |
| | |
| | content <div> |
| | |
| | |
| sidebar | |
| <div> | |
| | ---------------------------------------|
| | |
| | input box <input> |
| | |
---------------------------------------------------------
我不是一个前端的人所有,因此请帮我用引导3.这个布局我一直在拉我的头发浮动,定位等
HTML
<div class="container-fluid">
<div class="col-md-3"></div>
<div class="col-md-9">
<div class="content"></div>
<div class="input-box">
<input type="text"/>
</div>
</div>
</div>
CSS
.col-md-9 {
background-color: green;
height: 600px;
}
.content {
height: 550px;
background-color: blue;
}
.input-box {
margin-top: 20px;
height: 30px;
background-color: red;
}
.input-box input {
display: inline-block;
width: 100%;
height: 100%;
}
正如你所看到的,我对高度进行了硬编码,我想将它扩展到全高度。
谢谢!
请添加您到目前为止创建的HTML和CSS,否则此问题可能会被关闭。 – TylerH 2015-04-02 22:48:21
对不起大家,只是发布我的HTML和CSS。 – Michael 2015-04-03 01:10:07
http://jasny.github.io/bootstrap/getting-started/#examples – Christina 2015-04-03 01:20:42