margin 为外边框,当div里的第一个div定义margin-top时会作为父div的样式,如果想用margin-top,需要将父div的position设置为relative,该div的position设置为absolute;
margin padding 注意事项
原创1005232218 ©著作权
©著作权归作者所有:来自51CTO博客作者1005232218的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:mysql 数据库导出sql文件
下一篇:我的友情链接
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
margin 和 padding
一图胜千言!!参考CSS padding margin border属性详解
网页布局 Margin Padding -
VIM 注意事项
记录我使用vim的小技巧,有则更新O(∩_∩)O~
linux unix 休闲 VIM 事项 -
装修注意事项
分类:
职场 休闲 装修