CSS學習03-字體、文本、背景和列表設置

一、字體設置
1.font-size(大小、尺寸):30px;
2.font-family(字體類型):華文彩雲,宋體;(優先使用第一個,可以用則用)
3.font-weight(粗體):bolder;
4.font-style(斜體):italic;
5.font-variant(大小寫):small-caps;(全部轉爲小寫)
二、文本屬性
1.color(文本的顏色):
2.direction(文本的方向):
3.text-align(排列元素中的文本):
4.text-decoration(向文本添加修飾):
underline;(下劃線)
line-through;(中劃線)
overline;(上劃線)
none;(無)
5.text-transform(控制元素中的字母大小寫):
uppercase;(大寫)
capitalize;(每個單詞首字符大寫)
6.letter-spacing(字母的間距):
7.word-spacing(單詞的間距):
8.line-height(行高):
三、背景屬性
1.background-image(背景圖片):
url(image/2.gif);
2.background-repeat:
no-repeat;(不平鋪)
repeat-x;(只在橫向平鋪)
3.background-position:(背景位置):
right;(放在右邊)
right bottom;(放在右下角)
middle center;(正中間)
4.background-attachment:(背景的滾動方式)
fixed;(相對於滾動條不動)
scroll;(相對於頁面不動)
5.background-color:(背景顏色)
四、列表屬性
1.list-style-image:
url(*.jpg);(列表前面顯示圖標)
2.display:inline;(列表橫向排列)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章