【问题标题】:padding on Bootstrap componentsBootstrap 组件上的填充
【发布时间】:2014-03-01 23:20:48
【问题描述】:

我正在使用引导程序,但不确定我是否正确使用了列

我似乎无法正确设置边距和填充。

请看下图和JS Fiddle

  <div class="row">
                <!-- MAIN LEFT CONTENT! -->
                <div class="col-lg-9">

                    <div class="panel panel-default">
                         <div class="panel-body">
                            <div class="alert alert-info">
                               <p><span>Pending approval</span>.Your profile is bring approved. This means others can't search for you just yet.</p>
                            </div>
                              <div class="col-lg-5 col-sm-4 col-xs-5 hot-not">
                               <div class="row">
                                  <div class="thumbnail">

【问题讨论】:

    标签: html css twitter-bootstrap padding


    【解决方案1】:

    规则.col-xs-5(第793行)是固定宽度:

    .col-xs-5 {
      width: 41.66666666666667%;
    }
    

    将其设置为 50%:

    .col-xs-5 {
      width: 50%;
    }
    

    【讨论】:

      猜你喜欢
      • 2021-06-12
      • 2018-12-27
      • 2023-03-05
      • 1970-01-01
      • 1970-01-01
      • 2013-02-04
      • 2021-04-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多