2010-12-09 59 views

回答

1

或者,包括showgrid mixin(原始SASS语法中的+showgrid):

#my-container 
    +showgrid 

你这样做,不过,需要生成图像的特定网格味:

$ compass grid-img W+GxH [path/to/grid.png] 
# Where: 
# 
# W = Width of 1 column in pixels. 
# G = Width of 1 gutter in pixels. 
# H = Height of the typographic baseline in pixels. 
+0

了最新的指南针版本,它是没有必要创建栅格图像原因罗盘现在显示的是用CSS3。 – raskhadafi 2012-01-05 11:17:57

1

类showgrid只需添加到您的容器

,如果你在该网页上检查元素和删除showgrid类,你会看到它消失