为了账号安全,请及时绑定邮箱和手机立即绑定

上外边距与上外边距相遇问题

<style type="text/css">

.box{background:yellow;height: 250px;border: 1px solid grey;margin-top: 30px}

.box1{background: red;height: 70px;margin-top: 80px;}

.box2{background: blue;height: 50px;margin-top: 40px}

</style>

</head>

<body>

<div class="box">

<div class="box1"></div>

<div class="box2"></div>

</div>

问题:上外边距与上外边距相遇是指那种情况的,不是很明白视频里面应用于哪种类型。求大神们用盒子模型讲解一下。是哪个块(盒子)与哪个块(盒子)的上外边距相遇了。


正在回答

1 回答

举报

0/150
提交
取消
固定层效果
  • 参与学习       51921    人
  • 解答问题       148    个

运用属性值就轻松实现网页固定层效果

进入课程

上外边距与上外边距相遇问题

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信