要装饰CSS中的文本,请使用text-decoration属性。下面的示例演示如何装饰文本。可能的值是无,下划线,上划线,直通,闪烁。
<html> <head> </head> <body> <p style = "text-decoration:underline;"> This will be underlined </p> <p style = "text-decoration:line-through;"> This will be striked through. </p> <p style = "text-decoration:overline;"> This will have a over line. </p> <p style = "text-decoration:blink;"> This text will have blinking effect </p> </body> </html>