Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 在bootstrap上导入google字体_Html_Css_Twitter Bootstrap_Fonts - Fatal编程技术网

Html 在bootstrap上导入google字体

Html 在bootstrap上导入google字体,html,css,twitter-bootstrap,fonts,Html,Css,Twitter Bootstrap,Fonts,我正在尝试导入谷歌字体,问题是我遵循这些步骤,如果使用 <h3 style="color:white ; font-family:signika; padding:2%"> Whatever </h3> 但它不起作用,我仍然必须在每个html标记中设置它,我甚至试着把它具体地像 h1 { margin: .67em 0; font-size: 2em; font-family:'Signika'; } 但还是不行 将这一行添加到 如果font-family:signi

我正在尝试导入谷歌字体,问题是我遵循这些步骤,如果使用

<h3 style="color:white ; font-family:signika; padding:2%"> Whatever </h3>
但它不起作用,我仍然必须在每个html标记中设置它,我甚至试着把它具体地像

h1 {
margin: .67em 0;
font-size: 2em;
font-family:'Signika';
}

但还是不行

将这一行添加到

如果font-family:signika可以内联使用,也可以在css文件中使用它

html {
    font-family: signika, sans-serif;
}
“Signika:700”规则没有任何作用,我认为您试图做的应该写为:

font-family: signika;
font-weight: 700;

我发现我在h1中加入了规则字体族,但这不是h1的唯一实例,因此我必须进一步查看,我发现使用字体族的相应h1语句,因此它被错误地放置了,谢谢你的帮助,非常有用

html {
    font-family: signika, sans-serif;
}
font-family: signika;
font-weight: 700;