English 中文(简体)
Susy: Susy- grid- background 总是显示 12 列, 不论$总额 $- cols no
原标题:Susy: susy-grid-background always shows 12 columns regardless of $total-cols no

来自苏西文件:http://susy.oddbird.net/guides/ reference/#ref-grid-backfork

SUSY GRID BACKGROUND
Show the Susy Grid as a background-image on any container.

// susy-grid-background(); .page { @include susy-grid-background; }

如果您正在将该元素用作容器,则需要对该元素应用背景,以使该“反向”位置能够正确大小。

我的阴茎片段:

$total-cols     : 16;
$column-width   : 4em;
$gutter-width   : 1em;
$grid-padding   : $gutter-width;

html { background: #fff no-repeat left top; }    

.standard {
  @include container; 
  @include susy-grid-background; /* Susy */

在我的仓仓里:

%body.standard

不管我尝试过什么 电网总是显示12个纵队。有人愿意指示我方向吗?

susy (1.0.rc.1) compass (0.13.alpha.0)

最佳回答

$gtal-cols 应该被称为 $gtl-clums 。该变量的名称在1.0中更改。默认设置为12列,而您实际上并没有在任何地方超越该变量。

问题回答

如果您有一些断点, 您也需要直接解决这些问题, 才能更改 < code>$susy- grid- background 显示的列数 :

.page {
  @include container ($total-columns, $break1, $break2);

  @include susy-grid-background;

  @include at-breakpoint($break1)  {
    @include susy-grid-background;
  }
  @include at-breakpoint($break2)  {
    @include susy-grid-background;    
  }
}  




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

Aligning textarea in a form

Ive used the following css code to align my form elements: form { position:relative; } form input { position:absolute; left:11em; } However, the textarea element is not aligned correctly with the ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

CSS problem with page footer

I have defined my page footer in the css file as: #footer { position: absolute; height: 50px; text-align: center; background: #66CCCC; bottom: 0px; left: 0px; width: 100%; height: ...

热门标签