<!DOCTYPE html>
<html><head><meta charset="UTF-8"><title></title><style>#div1{border: 1px solid red;background-color: darkseagreen;width: 300px;height: 300px;/*外边距 当前块标签外部的和父级块标签之间的距离*//*设置当前模块上下左右四个外边距都是200px*//*margin: 200px;*//*设置上下外边距为50px 设置左右外边距为100px*//*margin: 50px 100px;*//*设置 上 右 下 左 四个外边距*//*margin: 10px 20px 30px 40px;*//*单独设置四个外边距*/margin-top: 10px;margin-right: 20px;margin-bottom: 30px;margin-left: 40px;}</style></head><body><div id="div1"></div>asdfasdfasdf</body>
</html>