如何缩小页脚中的文字

问题描述 投票:0回答:1

在页脚标签中,您使用什么来使文本变小? 我需要采取哪些步骤来缩小文字?

只是玩玩而已。但我只是让自己感到困惑,我开始感到有点沮丧,因为我不知道该怎么做。

footer
1个回答
0
投票

要使页脚中的文本变小,您可以使用 css

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        footer h1{
            font-size: 100px;
        }
    </style>
</head>
<body>
    <footer>
        <h1>
            hello world
        </h1>
    </footer>
</body>
</html>

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.