text
英 [tekst]? ?美 [t?kst]??
n.文本,原文;課文,教科書;主題;版本
v.發(fā)短信
decoration
英 [?dek??re??n]? ?美 [?d?k??re??n]??
n.裝飾品;裝飾,裝潢;裝飾圖案,裝飾風(fēng)格;獎?wù)?/p>
css text-decoration屬性 語法
作用:text-decoration 屬性規(guī)定添加到文本的修飾。
說明:這個屬性允許對文本設(shè)置某種效果,如加下劃線。如果后代元素沒有自己的裝飾,祖先元素上設(shè)置的裝飾會“延伸”到后代元素中。不要求用戶代理支持 blink。? ??
注釋:所有主流瀏覽器都支持 text-decoration 屬性。任何的版本的 Internet Explorer (包括 IE8)都不支持屬性值 "inherit"。IE、Chrome 或 Safari 不支持 "blink" 屬性值。
css text-decoration屬性 示例
<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>
點擊 "運行實例" 按鈕查看在線實例