小编Arp*_*ash的帖子

我无法更改从 Google Fonts 复制的字体样式的字体大小

'Flavoroso' 的字体大小不会因 font-size 的任何值而改变。谁能帮我解决这个问题吗?

超文本标记语言

<!DOCTYPE html>
<html>
    <head>
        <title>Main Page</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="index.css">
        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Dancing+Script">
        <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
    </head>

    <body>
        <div class="container align-items-center d-flex h-100">
          <header class="text-center col-12">
              <h1>Flavoroso</h1>
          </header>
        </div>
    </body>
</html>
Run Code Online (Sandbox Code Playgroud)

CSS

h1 {
  background-color: rgb(167, 166, 165, 0.5);
  font-family: "Dancing Script", cursive;
  font-style: italic;
  font-size: 7rem;
  color: rgb(29 28 28);
}
Run Code Online (Sandbox Code Playgroud)

html css fonts font-size

3
推荐指数
1
解决办法
525
查看次数

标签 统计

css ×1

font-size ×1

fonts ×1

html ×1