1. 程式人生 > >初學CSS-2-文本的屬性

初學CSS-2-文本的屬性

劃線 center 單位 indent over enter 什麽 one tex

文本裝飾屬性:

    格式:text-decoration:underline;

    取值:underline(下劃線) line-through(刪除線) overline(上劃線)

       none(什麽都沒有)

       none最常見的用途是用於去掉超鏈接的下劃線。

    快捷鍵:tdu / tdl / tdo / tdn + tab鍵

文本水平對齊屬性:

    格式:text-align:right;

    取值:left(左) right(右) center(中)

    快捷鍵:ta / tar / tac + tab鍵

文本縮進屬性:

    格式:text-indent:2em;

    取值:2em,em是單位,一個em代表縮進一個文字的寬度。

    快捷鍵:ti2e:text-indent:2em;

初學CSS-2-文本的屬性