无论设置什么字体大小,'Flavoroso'的字体大小都不会改变。请问有人能帮我解决这个问题吗?
HTML
<!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>
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);
}