会员
周边
众包
新闻
博问
闪存
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
jingjing1504100
博客园
首页
新随笔
联系
订阅
管理
11 2017 档案
子元素设置margin-top,父元素无法将margin-top包含在父容器的原因及解决办法
摘要:代码如下: layout 结果:父级并没有完全保住子集,父级没有包含子集的margin-top部分, 原因:CSS2.1的盒模型中规定: In this specification, the expression collapsing margins means that adjoining margins (no non-em...
阅读全文
posted @
2017-11-06 12:04
jingjing1504100
阅读(1163)
评论(0)
推荐(0)
公告