【发布时间】:2015-01-12 12:29:27
【问题描述】:
我的 CSS 有问题。我的索引页面中有一个面板表单,我想在页面中间垂直和水平移动它。但我不知道如何为此创建 CSS。
这是我的示例代码:
<div class="login_header"></div>
<div class="container" style="text-align: center;">
<div class="col-md-6 col-md-offset-3">
<div class="panel_form panel panel-default">
<div class="panel-content">
<h1>test</h1>
</div>
<div class="panel-footer">
<p>test</p>
</div>
</div>
</div>
</div>
<footer class="footer"></footer>
我有一个这样的 CSS:
.login_header { min-height: 50px; background-color: #f5f5f5; }
.panel_form {
/* I don't have an idea with this */
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
height: 50px;
background-color: #f5f5f5;
}
我的 CSS 不够好,所以我需要你的帮助。多谢了.. :)
【问题讨论】:
标签: css twitter-bootstrap