reset 可以重置浏览器的的html的默认样式,因为各个浏览器对有些元素解析差别很大

通过重置样式可以让样式的浏览器兼容 更简单

使用方法简单

@import "compass/reset"

layout 有几个常见的布局函数,我觉得挺管用,其他的都是用来写组建非常常用的

Sticky Footer

该模块提供了需要布置你的页脚,它坚持到页面底部的工具。

这个模块主要用于布局页脚,可以让页脚固定在页面的最底部,是一个比较常用的功能,而且有配套的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/

具体的语法sticky-footer($footer-height, $root-selector, $root-footer-selector, $footer-selector)

$footer-height:页脚高度

$root-selector:页面主题的id

$root-footer-selector:形式上的页脚id

$footer-selector:真是页脚

Stretching

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方向的定位

Grid Backgrounds

网格背景混合组件允许你产生固定,流体和弹性网格布局,

这是使用css3  Gradients 实现的,

主要用于布局的测试和校对 我感觉

其实我感觉这个没什么用,主要用来作为参考布局用

具体如何引用和各种使用方法可以参考这里http://compass-style.org/reference/compass/layout/grid_background/

最新文章

  1. 【HNOI2008】Cards BZOJ 1004
  2. sql命令
  3. Eclipse JAVA项目的 目录结构 和 导入
  4. 创建FrameWork
  5. cocos2d-x make: *** [clean-box2d_static-armeabi] Error 1
  6. js获取网页的各种高度
  7. 注册 Gmail,验证手机号码的时候提示“此号码不能用于验证”,怎么解决?
  8. windbg 之 如何设置模块加载时断下
  9. 记一次wiki数据爬取过程
  10. ListView添加item的事件监听
  11. Kalman Filters
  12. 前端JS常见面试题(代码自撸)
  13. Xamarin.Android 使用 SQLite 出现 Index -1 requested, with a size of 10 异常
  14. Caffe2的安装
  15. Spring ApplicationContext(二)环境准备
  16. error C4430: error 2141
  17. 〖Linux〗git push orgin master不能解析域名的解决方法
  18. charles抓取移动端app数据
  19. 【Codeforces】113 D. Museum
  20. mysql的left join、 right join和inner join

热门文章

  1. 在js中获取在css中设置的background-image值
  2. 修改Sqlserver实例默认排序规则
  3. Js中 md5 sha1 base64 加密
  4. 【转】Windows下使用libsvm中的grid.py和easy.py进行参数调优
  5. javascript 核心语言笔记 6 - 对象
  6. 关于QImage提取单色通道方法(vector)
  7. Web GIS离线解决方案
  8. ubuntu安装vim时提示 没有可用的软件包 vim,但是它被其它的软件包引用了 解决办法
  9. make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] Error 1
  10. sk_buff封装和解封装网络数据包的过程详解