【问题标题】:Changing a columns width from 60% to 100% on media queries change在媒体查询更改时将列宽从 60% 更改为 100%
【发布时间】:2012-07-19 20:59:22
【问题描述】:

我正在使用Zurb Foundation 3 框架,我有以下布局。

<div class="row">
  <div class="eight columns">
    Main content...
  </div>
  <div class="four columns hide-for-medium">
    Sidebar...
  </div>
</div>

四列网格disappears on medium sized displays时如何让八列网格占宽度的100%?在中型显示器上,当四列网格变为“显示:无”时,八列网格仍然只占用八列,而理想情况下它会填满 12 列(全宽)。

【问题讨论】:

  • 你能做一个jsfiddle来演示这个问题吗,这样我更容易理解你想要什么。

标签: css media-queries zurb-foundation


【解决方案1】:

我设法解决了我的问题,它只需要一个特定的媒体查询并覆盖宽度和浮点值。

@media only screen and (max-width: 1279px) and (min-width: 768px) { 
  .test { 
    float: none !important; 
    width: auto !important;
  }
}

【讨论】:

  • 部门名称 mfDefaultSorter> 对此如何使用媒体查询进行响应式宽度(用于移动视图)。 {{ i+1 }}
猜你喜欢
  • 2013-06-13
  • 2021-12-11
  • 1970-01-01
  • 2023-03-09
  • 2021-09-22
  • 2020-02-17
  • 1970-01-01
  • 2013-03-08
  • 2021-02-27
相关资源
最近更新 更多