发表于: 2017-02-16 23:15:51
1 1221
今天完成的事情:对之前的学习进行巩固并做九宫格任务。
明天计划的事情:学习并对HTML的标签进行实际操作。
遇到的问题:看不懂属性,通过查资料解决。
收获:通过今天的学习,对HTML和CSS有了更深入的了解,在编写好HTML标签后,可以根据CSS样式来给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" >
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<style type="text/css">
.box{
width:300px;
height:300px;
margin:30px;
background-color:#fff;
}
.box div{
border-radius:5px;
width:50px;
height:50px;
margin:5px;
background-color:#e78326;
float:left;
}
.clear{clear: both;}
</style>
</head>
<body>
<div class="box">
<div></div><div></div><div></div>
<div></div><div></div><div></div>
<div></div><div></div><div></div>
<div class="clear"></div>
</div>
</body>
</httml>
评论