子级与父级的margin合并的问题

子级加上了margin以后,发现其父级也移动了相应的margin值。外边距合并。换成padding;在父级上加overflow:hidden;

posted @ 2016-10-24 18:17  稍微有点色  阅读(579)  评论(0编辑  收藏  举报