相关疑难解决方法(0)

Twitter Bootstrap - 如何水平或垂直居中元素

有没有办法在主要父母的内部垂直或水平居中html元素?

css twitter-bootstrap

282
推荐指数
9
解决办法
54万
查看次数

将一个面板放在屏幕上

我正在使用bootstrap并创建一个面板.我正试图将我的面板放在屏幕中间.它在一个容器内.

<div class="container body-content">
    <div class="panel panel-default col-md-6">
        <div class="panel-title text-center">Log in</div>
        <div class="panel-body text-center">
             <h6>Use a local account to log in.</h6> 
        </div>
    </div>
</div>
Run Code Online (Sandbox Code Playgroud)

css twitter-bootstrap

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

css ×2

twitter-bootstrap ×2