css页面文本线条装饰

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文本装饰</title>
<!--    text-decoration 文本修饰-->
<!--    none:默认,无下划线
        underline:定义下划线效果,也是a链接自带的央视效果
        overline:定义上划线效果
        line-through:定义删除线效果-->
<!--    (1)设置装饰线条颜色:text-decoration-color   -->
<!--        例如:text-decoration-color:red;     -->
<!--    (2)设置装饰线条类型:text-decoration-style  -->
<!--        例如:text-decoration-style:double;  -->
<!--        solid:实线
            double:双线
            dotted:点状线条
            dashed:虚线
            wavy:波浪线    -->

    <style type="text/css">
        h1{text-decoration: overline; text-decoration-style: dotted}
        h2{text-decoration: line-through;text-decoration-color: #ff003b}
        h3{text-decoration: underline blue wavy}
        a{text-decoration: none}

    </style>
</head>
<body>
<h1>biaoti</h1>
<h2>BAOTI</h2>
<h3>BiaoTi</h3>
<p><a href="01.入门.html">这是一个链接</a>></p>
</body>
</html>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值