【发布时间】:2020-06-14 01:56:20
【问题描述】:
在我的代码顶部我有:
https://fonts.googleapis.com/css?family=Merriweather&display=swap" rel="stylesheet" >
在我的 CSS 中,我有:
font-family: 'Merriweather', ;
但它没有出现。我不确定原因是什么。它看起来很简单,但没有任何效果。
任何帮助将不胜感激。
这是我的 HTML 的顶部:
<link rel = "stylesheet"
type = "text/css"
href = "stylesheet.css" />
<link href="https://fonts.googleapis.com/css?family=Merriweather&display=swap" rel="stylesheet">
<head>
<title>Jesse | Personal Chef </title>
<meta charset="UTF-8">
<meta name="description" content="Jesse Personal Chef">
<meta name="keywords" content="Food, Chef, Wilmington, NC, North Carolina Food, In Home Chef, Personal Chef, Chef For Hire, Jesse,">
<meta name="author" content="Cal & Jen T.">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
这是我的 CSS,保存为 stylesheet.css:
<style>
/* HEADERS ~~~~~~~~~~ */
h1 {
font-family: 'Merriweather', ;
text-align: center;
font-size: 2.7em;
color: 000;
font-weight: 500;
letter-spacing: 2%;
line-height: 40px;
padding-bottom: -100px;
margin: 2%;
}
.subtitle {
font-family: 'Merriweather', ;
text-align: center;
font-size: 1.04em;
color: 000;
font-weight: regular;
margin: 1;
line-height: 1px;
padding-bottom: 60px;
}
</style>
谢谢
【问题讨论】:
-
您可能需要提供更多代码,例如您的
CSS Selector,因为我们不知道这是否适用于提供的代码。尝试显示复制问题所需的所有代码。