css ===== text-decoration

Text modification directly on the code

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>text-decoration</title>
    <style>
        h1 {
    
    
            text-decoration: overline;
        }

        h2 {
    
    
            text-decoration: line-through;
        }

        h3 {
    
    
            text-decoration: underline;
        }
    </style>
</head>

<body>
    <h1>上划线</h1>
    <h2>删除线</h2>
    <h3>下划线</h3>
</body>

</html>

effect

Insert picture description here

Guess you like

Origin blog.csdn.net/hu1628299958/article/details/110459766