margin()与offset()的区别

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

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

原文地址:https://www.cnblogs.com/yyy251/p/6257885.html