【问题标题】:My columns are not showing up in Safari (but they are in Chrome, Explorer, Firefox)?我的列没有显示在 Safari 中(但它们在 Chrome、Explorer、Firefox 中)?
【发布时间】:2020-07-16 00:06:50
【问题描述】:

只有第 1 列和第 3 列显示,所以我假设它与显示有关。我在看 具有类和显示的可能解决方案。我似乎找不到让它出现的方法。有没有 我应该添加或删除的东西?谢谢!

<div id="NameA" >
<div id="NameB">
<div class="container">
<div class="row">
<div class="container" id="content-container1"> 
        <div class="col-md-3" id="name1"> 
           </div>
        <div class="col-md-3" id="name2" >              
           </div>
        <div class="col-md-3" id="name3" >
           </div>   
        <div class="col-md-3" id="name4">
           </div>
</div><!--/content-container-->
</div><!-- /row -->
</div><!-- /container -->
</div>
</div>

CSS
#NameA {width: 100%; position: absolute; bottom: 0px;}
#NameB {padding-top: 20px; background-color: #000;  height: 220px; width:100%; }

【问题讨论】:

    标签: html css safari containers


    【解决方案1】:

    尝试添加这个,因为有时会在破坏 Safari 之前和之后隐藏代码:

    .row:before, .row:after {display: none !important;}
    

    【讨论】:

      猜你喜欢
      • 2012-05-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-17
      • 1970-01-01
      • 2015-05-13
      • 1970-01-01
      • 2016-10-29
      相关资源
      最近更新 更多