Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sass @include断点和@include at断点之间有什么区别?_Sass_Susy Compass_Compass Sass - Fatal编程技术网

Sass @include断点和@include at断点之间有什么区别?

Sass @include断点和@include at断点之间有什么区别?,sass,susy-compass,compass-sass,Sass,Susy Compass,Compass Sass,我有一个问题,因为我正在处理一个项目,我的团队正在使用@include breakpoint和@include at breakpoint。我们正在使用sass、compass和susy。两者之间有什么区别?在断点处是Susy的一部分,用于更改不同断点处的总列数。受初始语法的启发,创建了一个更强大、更通用的媒体查询管理工具。现在,许多人(包括我)在同一个项目中使用这两种方法。它们在一起工作得很好,但它们之间的差异可能令人困惑 如果要基于最小/最大宽度媒体查询更改susy$total colum

我有一个问题,因为我正在处理一个项目,我的团队正在使用@include breakpoint和@include at breakpoint。我们正在使用sass、compass和susy。两者之间有什么区别?

在断点处
是Susy的一部分,用于更改不同断点处的总列数。受初始语法的启发,创建了一个更强大、更通用的媒体查询管理工具。现在,许多人(包括我)在同一个项目中使用这两种方法。它们在一起工作得很好,但它们之间的差异可能令人困惑

  • 如果要基于最小/最大宽度媒体查询更改susy
    $total columns
    设置,请在断点处使用
  • 使用
    断点
    进行更复杂的媒体查询,或在不想更改列数的任何位置进行查询
如果您只想使用其中一个,并且更加一致,可以在断点处重新创建
的功能

@include breakpoint($media-query) { // set your media-query
  @include layout($columns) { // set your columns
    // nested code will use the new column count at the given media-query
  }
}

at breakpoint
只是一个快捷方式。

您是否尝试查看这些mixin的源代码?我找到at breakpoint的源代码,但没有找到breakpoint