標籤:class family font ble relative 間隔 設定 ext cin
css屬性介紹
1 backgroud-color:blue or #000000 or rgb(255,255,255) --背景顏色 2 backgroud-image:url(/image/1.gif) --背景圖片 3 background-repeat:repeat-y,repeat-x --背景重複 4 background-position:center --背景映像位置 5 background-attachment:fixed --映像不隨文檔滾動 6 7 text-indent:5em --首行縮排,可以被繼承 8 text-align:left,right,center,justify --文本對齊 9 word-spacing:30px or 5em --改變字單詞之間間隔 em可以是負值10 letter-spacing:30px or -0.5em --改變單詞中 字母間間隔11 text-transform:none or uppercase or lowercase or capitalize --改變文字大小寫12 text-decoration:none or underline or overline or line-through or blink --文本上劃線底線等13 color --設定文本顏色14 direction:ltr or rtl --設定文本方向15 inline-height --設定行高16 text-shadow --設定文本陰影17 font-family --設定文本字型18 font-style:normal or italic or oblique --文本斜體19 font-variant:small-caps --設定小型大寫字母20 font-weight:normal or bold or 900 --設定文本的粗細21 font-size:20px or(==) 1.25em or 100% --設定文字大小22 li清單項目中:list-style:url or square none or inside --清單項目標誌23 table表格中:table ,th,td :border:1px solid blue(線的大小 實線 顏色) --表格邊框24 table表格中:border-collapse:collapse --表格邊框摺疊為單一邊框 25 table表格中:width,表格元素td寬度高度,td對齊text-lign or vertical-align26 padding:20px --元素內間距,帶有四個方向上右下左27 margin:20px --元素間間距,帶有四個方向上右下左28 position:static,relative,absolute,fixed --定位29 float:left --浮動30 clear:left,right,both,none,inherit --清除浮動
【css】css基本屬性