margin()与offset()的区别

margin() 简写属性在一个声明中设置所有外边距属性。

 

offset() 方法返回或设置匹配元素相对于文档的偏移(位置)。

posted @ 2017-01-06 22:18  ▍凉城空巷°  阅读(169)  评论(0编辑  收藏  举报