发表于: 2016-04-20 20:21:13
1 1848
今天完成的事:html和css更深入的了解
明天计划的事:完成任务二
遇到的问题:在练习的过程中出现很多次写错单词或者样式格式。
收获:1、比如了解了样式的三种形式(行间样式、内部样式、外部样式)并进行了练习,在真实的工作中外部样式应该是用的最多的。
1)行间样式:<div style="height:100px;width:100px;background:red;">aaa</div>
2)内部样式:<style>#a{height:100px;width:100px;background:red;}</style>
<div id="a">a</div>
3)外部样式:<click rel="stylesheet" href=" "/>
外部链接有属性的css文件
2、background的单一格式和复合格式
1)单一格式:background-color
background-repeat
background-position
background-attachment
2)复合格式:background:
复合样式明显简化,而且border也是复合样式。
评论