古詩詞大全網 - 成語經典 - text-decoration:none什麽意思

text-decoration:none什麽意思

text-decoration: none刪除下劃線

在CSS中,使用text-decoration屬性來定義段落文本的下劃線、刪除線和頂劃線。none即為默認值,可以用這個屬性值也可以去掉已經有下劃線或刪除線或頂劃線的樣式

text-decoration是三個屬性的縮寫:text-decoration-line,text-decoration-color,text-decoration-style

1、text-decoration-line

定義:用來規定文本修飾要使用的線條類型。

取值:none,underline,line-through(規定文本中間將顯示壹條線)等等。

2、text-decoration-color

定義:用來規定文本修飾(下劃線 underline、上劃線 overline、中劃線 line-through)的顏色。

取值:所有顏色表示法。

3、text-decoration-style

定義:用來規定線條如何顯示。

取值:solid和double和dotted和dashed等等。

擴展資料

常用的CSS文本屬性:

1、font-size ?字體大小

2、color 字體顏色

3、line-height 行高

4、text-decoration ?文本修飾(如下劃線)

5、text-indent 文本縮進

6、background-color ?背景顏色