课程
/前端开发
/HTML/CSS
/初识HTML(5)+CSS(3)-升级版
#box1{margin-bottom:30px;}不是只把box1设置边界吗,为什么box2也被设置了呢
2020-03-26
源自:初识HTML(5)+CSS(3)-升级版 12-13
正在回答
可以看到,因为box1设置了margin-bottom,导致了视觉上box2下移,其实是因为box1的整体高度增加了
整个代码麻烦贴一下。
举报
HTML(5)+CSS(3)基础教程8小时带领大家步步深入学习标签用法和意义
8 回答#box1{margin-bottom:30px;}
5 回答#box1{margin-bottom:30px;}
6 回答为什么写#box1{margin-bottom:30px;} 可以实现两个div而不写#box1{margin-bottom:30px;}#box2{margin-bottom:30px;}
4 回答.box1{margin-bottom:30px;}为什么不对
4 回答margin-bottom:30px;
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号