Compass布局模块
文章目录
1. 固定页脚(页脚始终在最下方)
sticky-footer混合器
index.html
<div id="content">
这是内容
</div>
<div id="footer">
这是页脚
</div>
@include sticky-footer(40px, "#content", "#footer" "#sticky-footer")
2. 可伸展元素
stretch混合器 有4个参数:$coffset-top $offset-right $offset-bottom $offset-left
@include strech(5px, 5px, 5px, 5px)strech-x 混合器 有2个参数:$offset-left $offset-right
strech-y 混合器 有2个参数:$offset-top $offset-bottom

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论