第三天

今天也太累了吧 

今天把剩下的css样式都讲了

text-align  文本水平对齐方式

line-height  行高

lettter-spacing  字距

word-spacing  词距

font-family  字体类型

font-size  字体大小

font-weight  字体粗细

font-style  字体倾斜   italic倾斜  oblique字体倾斜 normal

color 字体颜色  注意只要一个单词就行了

另外要注意  本来是#xxxxxx   6个数字

如果哪里是#abc   全写一定是#aabbcc,当且仅当这种情况时颜色

可以用三个数字表示   其他情况下都是6个数字



background-color 背景色

background-img 背景图片  注意属性值一定是 空格加url(图片路径)

background-size  背景尺寸

background-repeat 背景平铺方式

background-position 背景图片位置

属性值:1.left top right center bottom 5个词两两组合形成的模糊点的位置

            2.多少px  多少px  很具体的位置

           3.位置百分比

background-attachment 背景滚动方式

scroll

fixed

你可能感兴趣的:(第三天)