【问题标题】:How to make a fixed layout into a fluid one from certain breakpoint?如何从某个断点将固定布局变成流体布局?
【发布时间】:2012-10-29 08:12:46
【问题描述】:

我需要固定布局,直到窗口宽度超过 960 像素。之后,它应该在保持先前网格系统的关系的同时保持流畅。这个问题有最佳实践吗?

【问题讨论】:

    标签: css responsive-design frontend


    【解决方案1】:

    这称为媒体查询。并且您可以使用它来编写特定宽度的 css,从而将您的布局变成流畅的布局。

    @media (min-width:400px) and (max-width: 950px) {
        /* your css for the fluid layout */
    }
    

    这是http://webdesignerwall.com/tutorials/css3-media-queries的小指南

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-02-18
      • 2013-09-30
      • 2013-09-07
      • 2010-12-06
      • 1970-01-01
      • 1970-01-01
      • 2012-12-09
      • 1970-01-01
      相关资源
      最近更新 更多