发表于: 2016-10-29 20:58:41
1 688
完成九宫格布局,进一步了解盒子模型。
学了一遍git简明教程,装好软件,学会简单的创建,修改和github库的建立。
继续学习css知识,跟着任务走。
遇到难题,通过反复测试和谷歌搜索解决。
<style type="text/css"> | |
*{margin: 0;padding: 0;} | |
#wrapper{ | |
margin: auto; | |
text-align: center; | |
background-color: #FFFFFF; | |
width: 330px; | |
height: 330px; | |
} | |
.box{ | |
width: 100px; | |
height: 100px; | |
background-color: #FBE95A; | |
border-radius: 5px; | |
float: left; | |
margin:5px; | |
} | |
</style> | |
<body> | |
<div id="wrapper"> | |
<div class="box"></div> | |
<div class="box"></div> | |
<div class="box"></div> | |
<div class="box"></div> | |
<div class="box"></div> | |
<div class="box"></div> | |
<div class="box"></div> | |
<div class="box"></div> | |
<div class="box"></div> | |
</div> | |
</body> | |
</html> |
评论