欧美亚洲中文,在线国自产视频,欧洲一区在线观看视频,亚洲综合中文字幕在线观看

      1. <dfn id="rfwes"></dfn>
          <object id="rfwes"></object>
        1. 站長(zhǎng)資訊網(wǎng)
          最全最豐富的資訊網(wǎng)站

          css如何增加下劃線

          css增加下劃線的方法是,給文本設(shè)置text-decoration屬性,并且設(shè)置屬性值為underline即可,例如【h3 {text-decoration:underline;}】。

          css如何增加下劃線

          本文操作環(huán)境:windows10系統(tǒng)、css 3、thinkpad t480電腦。

          要給一段文本添加下劃線,或者是上劃線、刪除線等,只需要給這段文本添加text-decoration屬性即可。下面我們就來(lái)簡(jiǎn)單介紹下text-decoration屬性。

          text-decoration 屬性規(guī)定添加到文本的修飾,下劃線、上劃線、刪除線等。

          常用屬性值如下:

          • none 默認(rèn)。定義標(biāo)準(zhǔn)的文本。

          • underline 定義文本下的一條線。

          • overline 定義文本上的一條線。

          • line-through 定義穿過(guò)文本下的一條線。

          • blink 定義閃爍的文本。

          • inherit 規(guī)定應(yīng)該從父元素繼承 text-decoration 屬性的值。

          代碼示例:

          <!DOCTYPE html> <html> <head> <meta charset="utf-8">  <title>php中文網(wǎng)(php.cn)</title>  <style> h1 {text-decoration:overline;} h2 {text-decoration:line-through;} h3 {text-decoration:underline;} </style> </head>  <body> <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> </body>  </html>

          運(yùn)行結(jié)果如下圖所示:

          css如何增加下劃線

          贊(0)
          分享到: 更多 (0)
          網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)