【问题标题】:iPad Air doesn't display my foundation 6 site properlyiPad Air 无法正确显示我的 Foundation 6 网站
【发布时间】:2016-11-27 09:43:43
【问题描述】:

我在 Wordpress 网站中使用 Foundation 6。 我面临的问题仅发生在 iPad Air 上。它在较旧的 iPad 和所有其他设备和浏览器上运行良好。 发生的情况是我有 6 个 small-2 列,但最后一列显示在新行中。 我不明白这怎么会发生。

这里是页面:https://lagalope.com/the-collection-2/

这里是html结构:

<div class="row">
  <div class="small-2 column">
    content....
  </div>
  <div class="small-2 column">
    content....
  </div>
  <div class="small-2 column">
    content....
  </div>
  <div class="small-2 column">
    content....
  </div>
  <div class="small-2 column">
    content....
  </div>
  <div class="small-2 column">
    content....
  </div>
</div>

当我在 JSFiddle 中重现它时,它工作正常,所以这意味着我的 wordpress 主题有问题...:https://jsfiddle.net/curuba/s5twohf5/2/

[编辑] 当我避免使用 flex-grid 时,它似乎得到了解决。当我评论以下行时,一切都很好:

@include foundation-flex-grid;

我不明白为什么这会导致问题。我让这个问题悬而未决,因为这只是对根本原因的进一步方向,而不是解决方案。

【问题讨论】:

    标签: zurb-foundation ipad-3


    【解决方案1】:

    试试这个:

    // Fix ios flex bug
    .row {
      .column:first-child {
        flex: 1 1 0;
      }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-26
      • 2021-11-14
      • 2018-06-13
      • 1970-01-01
      • 2021-12-16
      • 1970-01-01
      相关资源
      最近更新 更多