@include 容器是啥意思?

Posted

技术标签:

【中文标题】@include 容器是啥意思?【英文标题】:What does @include container mean?@include 容器是什么意思? 【发布时间】:2012-09-27 22:11:20 【问题描述】:

我开始使用 Compass 和 Susy。我的目标是让我的布局适应手机、平板电脑和桌面屏幕尺寸。 在 Susy 示例(susy.oddbird.net 或 SO question)中,有一种模式是让列数适应屏幕大小。具体来说,有这样的嵌套规则:

.container 
  @include container;

  @include desktop 
    @include container;
  

我现在的问题是:容器 @include container 是做什么的?还有,为什么又嵌套在桌面include中?

【问题讨论】:

【参考方案1】:

container mixin 确定页面的宽度。如果宽度应该改变(就像自适应布局一样),您只需要在不同的断点重复它。如果您使用的是流体网格,则无需重复。

【讨论】:

以上是关于@include 容器是啥意思?的主要内容,如果未能解决你的问题,请参考以下文章

#include <ctime>在c 中是啥意思

“(include_path='.:/usr/share/pear:/usr/share/php')”是啥意思?

SAP 中 INCLUDE STRUCTURE SFLIGHT语句是啥意思?

c++ 不清楚这段代是啥意思......

select是啥意思?

#include<fstream>头文件是啥意思