、absolute、inline-block元素) 2、只发生在垂直方向上(不考虑writing-mode) 【分类】 margin重叠的情况 1、相邻的兄弟元素 <style> p{
兄弟二
2、父级元素和第一个或最后一个子元素,父子级的margin重叠又叫margin传递 <style> .box{ background-color: pink 这样,使页面结构更具有健壮性,最后一个元素移除或位置调换,都不会破坏原生的布局 2.auto 只有width/height和margin可以设置auto。 所以在IE下虚线显得比较密 关于点线dotted,在chrome下,点线是方点;而在IE/firefox下,点线是圆点 border-style:none(默认) border-style:hidden 2、边框在内阴影之上,内阴影在背景图片之上,背景图片在背景色之上,背景色在外阴影之上 3、内阴影对