margin-top 指的的在盒模型中相对于父级元素的top边距,默认position属性为relative
top指的是所在元素与电脑屏幕的之间的顶部不变,是一个绝对的定位,在使用的
过程中要与position属性搭配着来使用.PS:一般position都是设置为absoulte,或者设置
fixed;
同理 margin-bottom,margin-left,margin-right,padding等属性也是类似.
margin-top 指的的在盒模型中相对于父级元素的top边距,默认position属性为relative
top指的是所在元素与电脑屏幕的之间的顶部不变,是一个绝对的定位,在使用的
过程中要与position属性搭配着来使用.PS:一般position都是设置为absoulte,或者设置
fixed;
同理 margin-bottom,margin-left,margin-right,padding等属性也是类似.