zoukankan      html  css  js  c++  java
  • text-decoration

    ■ 定义

    text-decoration属性规定添加到文本的修饰,可以给文本添加下划线,删除线,上划线等

    ■ 使用说明

    属性值(固定值):

      ▶ none:默认,没有装饰线(最常用)

      ▶ underline:下划线,链接a自带下划线(常用)

      ▶ overline:上划线(几乎不用)

      ▶ line-through:删除线(不常用)

    ■ 示例

    h1 {
        text-decoration: none;
    }
    
    h2 {
        text-decoration: underline;
    }
    
    h3 {
        text-decoration: overline;
    }
    
    h4 {
        text-decoration: line-through;
    }
    
    a {
        text-decoration: none;
    }
    <h1>没有装饰线的标题</h1>
    <h2>带下划线的标题</h2>
    <h3>带上划线的标题</h3>
    <h4>带删除线的标题</h4>
    <a href="#">不带下划线的链接</a>
  • 相关阅读:
    COM组件
    【游戏引擎架构】入门(一)
    UNICODE字符串
    Python随笔10
    Python随笔9-函数
    Python随笔7
    Python随笔6
    Python随笔5
    Python随笔4
    Python随笔3
  • 原文地址:https://www.cnblogs.com/shiliye/p/14174398.html
Copyright © 2011-2022 走看看