reset 能够重置浏览器的的html的默认样式,由于各个浏览器对有些元素解析差异很大css
经过重置样式能够让样式的浏览器兼容 更简单html
使用方法简单css3
@import "compass/reset"浏览器
layout 有几个常见的布局函数,我以为挺管用,其余的都是用来写组建很是经常使用的函数
该模块提供了须要布置你的页脚,它坚持到页面底部的工具。工具
这个模块主要用于布局页脚,能够让页脚固定在页面的最底部,是一个比较经常使用的功能,并且有配套的html代码布局
引用方法测试
@import "compass/layout/sticky-footer"
使用方法
@include sticky-footer(54px, "#my-root", "#my-root-footer", "#my-footer")
对应的html结构
<body> <div id="root"> <div id="root_footer"></div> </div> <div id="footer"> Footer content goes here. </div> </body>
官方还在有在线demo http://compass-style.org/examples/compass/layout/sticky-footer/ htm
具体的语法sticky-footer($footer-height, $root-selector, $root-footer-selector, $footer-selector)blog
$footer-height:页脚高度
$root-selector:页面主题的id
$root-footer-selector:形式上的页脚id
$footer-selector:真是页脚
Stretching 主要用于定位 用于在父容器中定位子元素的我位置
官方也有一些 demo http://compass-style.org/examples/compass/layout/stretching/
例如 下边这些 布局
包含的布局函数
stretch-y($offset-top, $offset-bottom) 定位在y方向的定位
stretch-x($offset-left, $offset-right) 定位在x方向的定位
stretch($offset-top, $offset-right, $offset-bottom, $offset-left) 综合x,y方向的定位
网格背景混合组件容许你产生固定,流体和弹性网格布局,
这是使用css3 Gradients 实现的,
主要用于布局的测试和校对 我感受
其实我感受这个没什么用,主要用来做为参考布局用
具体如何引用和各类使用方法能够参考这里http://compass-style.org/reference/compass/layout/grid_background/