<body>
<div id="root">
<div id="root_footer"></div>
</div>
<div id="footer">
Footer content goes here.
</div>
8 </body>
//index.css
@include sticky-footer(54px) //参数为footer高度
@include sticky-footer(54px, "#my-root", "#my-root-footer", "#my-footer") // 自定义选择器
官方在线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:真是页脚