答案 0 :(得分:1)
只需将showgrid类添加到容器
即可如果您检查该页面上的元素并删除showgrid类,您将看到它消失
答案 1 :(得分:1)
或者,在原始SASS语法中包含showgrid mixin(+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.