<html xmlns="https://www.w3.org/1999/xhtml"><head><title>垂直外边距合并</title><style>.top{width:160px; height:50px; background:#ccf;}.middle{width:160px; background:#cfc;}.middle .firstChild{margin-top:20px;}</style></head><body><div class="top"></div><div class="middle"> <div class="firstChild">我其实只是想和我的父元素隔开点距离。</div> <div class="secondChild"></div></div></body></html><html xmlns="https://www.w3.org/1999/xhtml"><head> 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交