margin四个元素的顺序

如果margin给的是四个值
比如:margin:0px 0px 0px 0px;
代表:margin: top right bottom left
代表从上右下左,顺时针方向。
如果margin给的是三个值
比如:margin:0px 0px 0px;
代表:margin: top  left-right bottom;
代表上 左右 下.中间一个值被左右两个占用。

posted @ 2014-12-03 13:27  觉缘168  阅读(2652)  评论(0编辑  收藏  举报