text
英[tekst]? ?美[t?kst]??
n.文本,原文;課文,教科書;主題;版本
#v .傳簡訊
decoration
英[?dek??re??n]? ?美[?d?k??re??n]??
n.裝飾品;,裝飾圖案,裝飾圖案,裝飾風(fēng)格; ;獎?wù)?/p>
css 文字裝飾屬性 語法
作用:text-decoration 屬性規(guī)定加入到文字的修飾。
說明:這個屬性允許對文字設(shè)定某種效果,如加底線。如果後代元素沒有自己的裝飾,祖先元素上設(shè)置的裝飾會「延伸」到後代元素中。不要求用戶代理支援 blink。? ??
註解:所有主流瀏覽器都支援 text-decoration 屬性。任何的版本的 Internet Explorer (包括 IE8)都不支援屬性值 "inherit"。 IE、Chrome 或 Safari 不支援 "blink" 屬性值。
css 文字裝飾屬性 範(fàn)例
<html> <head> <style type="text/css"> h1 {text-decoration: overline} h2 {text-decoration: line-through} h3 {text-decoration: underline} h4 {text-decoration:blink} a {text-decoration: none} </style> </head> <body> <h1>這是標(biāo)題 1</h1> <h2>這是標(biāo)題 2</h2> <h3>這是標(biāo)題 3</h3> <h4>這是標(biāo)題 4</h4> <p><a href="http://ipnx.cn/">這是一個鏈接</a></p> </body> </html>
#點擊 "執(zhí)行實例" 按鈕查看線上實例