发表于: 2016-04-08 14:10:13
2 1400
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>九宫格</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="布尔教育 http://www.itbool.com" />
<style>
#a{width: 522px;
height: 534px;
background: write;
}
#b {
width: 148px;
height: 148px;
background: orange;
float: left;
margin-top: 34px;
margin-left: 26px;
margin-bottom: 7px;
border-radius: 10px;
}
#c {
width: 148px;
height: 148px;
background: orange;
float: left;
margin-top: 34px;
margin-left: 7px;
margin-bottom: 7px;
border-radius: 10px;
}
#d {
width: 148px;
height: 148px;
background: orange;
float: left;
margin-top: 34px;
margin-left: 7px;
margin-bottom: 7px;
border-radius: 10px;
}
#f {
width: 148px;
height: 148px;
background: orange;
float: left;
margin-left: 26px;
border-radius: 10px;
}
#g {
width: 148px;
height: 148px;
background: orange;
float: left;
margin-left: 7px;
margin-right: 7px;
border-radius: 10px;
}
#h {
width: 148px;
height: 148px;
background: orange;
float: left;
border-radius: 10px;
}
#i {
width: 148px;
height: 148px;
background: orange;
float: left;
margin-left: 26px;
margin-top: 7px;
margin-right: 7px;
border-radius: 10px;
}
#j {
width: 148px;
height: 148px;
background: orange;
float: left;
margin-top: 7px;
border-radius: 10px;
}
#k {
width: 148px;
height: 148px;
background: orange;
float: left;
margin-top: 7px;
margin-left: 7px;
border-radius: 10px;
}
</style>
</head>
<body>
<div id="a">
<div id="b"></div>
<div id="c"></div>
<div id="d"></div>
<div id="f"></div>
<div id="g"></div>
<div id="h"></div>
<div id="i"></div>
<div id="j"></div>
<div id="k"></div>
</body>
</html>
这是我的任务一,请师兄们帮忙看看。谢谢!
现在仍然看不懂具体的display。
这三天盒子模型看懂些,Margin了解了,但还不熟练。
计划继续看border。
嘻嘻。
评论