项目常用css总结

1、text-decoration用来定义文字的如下效果,underline(下划线), overline(上划线), line-through(删除线), no underline(无), and blink(闪烁,目前我测试firefox有效).

语法:

text-decoration: none | [ underline || overline || line-through || blink ] | inherit

    * none
      No special decorations.
    * underline
      Underlines the text.
    * overline
      Puts a line above the text.
    * line-through
      Puts a line through the middle of the text.
    * blink
      Makes the text blink.
    * inherit
      The element should have the same text-decoration setting as the parent.

例子如下:
<html>
<head>
<style type="text/css">
h1 {text-decoration: overline}
h2 {text-decoration: line-through}
h3 {text-decoration: underline}
a {text-decoration: blink}
</style>
</head>

<body>
<h1>这是标题 1</h1>
<h2>这是标题 2</h2>
<h3>这是标题 3</h3>
<p><a href="http://www.apache.org">这是一个链接</a></p>
</body>
</html>

你可能感兴趣的:(html,css,firefox)