<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>边距</title>
<style type="text/css">
div{
width:300px;
height:300px;
border:1px solid red;
}
</style>
</head>
<body>
<div id="box1">box1</div>
<div id="box2">box2</div> (就是这两个box,这篇代码里,没有定义过的吧,怎么又可以用上去了呢?)
</body>
</html>
<div id="box1">box1</div>
<div id="box2">box2</div>
就是在id这里定义了啊