前端入门:HTML(CSS.文本修饰)

代码:

005-css.html:

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>CSS文本修饰</title>

    <link rel="stylesheet" href="./005.css">

</head>

<body>

    <h1>IE浏览器将退役,27年从巅峰沦为“笑柄”</h1>

    <h2>一度辉煌</h2>

    <h3>沦为笑柄</h3>

    <h4>衍生问题出现</h4>

    <p>

        中新财经5月17日电(记者 吴涛)“微软IE浏览器6月16日正式退役"。虽然此前微软就有过暗示,但最终,

        微软在16日还是正式官宣了这一消息。该话题一度冲上微博热搜,不少网友称,IE浏览器见证了几代人

        的青春, “E网情深”成为历史,“爷青结”。

    </p>

</body>

</html>

005.css:

h1 {

    text-decoration-line: overline;

    text-decoration-color:red ;

}

h2 {

    text-decoration-line: line-through;

    text-decoration-color: blue;

}

h3 {

    text-decoration-line: underline;

    text-decoration-color: green;

}

p {

    text-decoration-line: underline overline;

    text-decoration-color: purple;

}

代码:

h1 {

    text-decoration-line: overline;

    text-decoration-color:red ;

    text-decoration-style: solid;

}

h2 {

    text-decoration-line: underline;

    text-decoration-color: blue;

    text-decoration-style: double;

}

h3 {

    text-decoration-line: underline;

    text-decoration-color: green;

    text-decoration-style: dotted;

}

h4 {

    text-decoration-line: underline;

    text-decoration-style: dashed;

}

p {

    text-decoration-line: underline;

    text-decoration-color: purple;

    text-decoration-style: wavy;

}

text-decoration:none;可以设置下划线的值为none,即没有下划线。

  • 5
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值