发表于: 2016-05-22 12:47:50
1 1055
1.代码html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" href="file:///E:/ORMBackup/ys.css">
</head>
<body>
<div>
<div class="box">
<div class="tang"></div>
<div class="tang"></div>
<div class="tang"></div>
<div class="tang"></div>
<div class="tang"></div>
<div class="tang"></div>
<div class="tang"></div>
<div class="tang"></div>
<div class="tang"></div>
</div>
</div>
</body>
</html>
2.css代码
@charset "utf-8";
/* CSS Document */
.box{
padding: 3px;
width: 660px;
height: 660px;
border: 1px solid yellow
}
.tang{
width: 200px;
height: 200px;
background-color: yellow;
margin-top: 15px ;
margin-left:15px;
border:1px solid yellow;
float: left
}
评论