首页 > 其他 > 详细

margin

时间:2016-02-28 21:28:18      阅读:168      评论:0      收藏:0      [点我收藏+]
 1 <!doctype html>
 2 <html>
 3 <head>
 4 <meta charset="utf-8">
 5 <title>无标题文档</title>
 6 <style>
 7 #box{width:200px;height:200px;background:Red;border:10px solid #000; margin:30px;}
 8 #div{width:200px;height:200px;background:blue;border:10px solid #ccc;}
 9 /*
10     margin 外边距(margin元素的边框之外不显示元素背景)
11     margin:10px 20px;
12     margin:10px 20px 40px;
13     margin:10px 20px 40px 60px;
14     margin-top
15     margin-right
16     margin-bottom
17     margin-left
18 */
19 </style>
20 </head>
21 <body>
22 <div id="box"></div>
23 <div id="div"></div>
24 </body>
25 </html>

 

margin

原文:http://www.cnblogs.com/hduhdc/p/5225511.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!