我遇到了Google字体的严重问题。他们在上周工作正常,从那时起他们就停止了所有浏览器和平板电脑的工作。如果我在我的电脑上手动安装字体,那么只有它们出现但不是很准确。
API的标头代码:
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,300' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700' rel='stylesheet' type='text/css'>
CSS:
body { font-family: 'Open Sans', Arial, sans-serif; font-size: 16px; color: #4c4c4c; background: url('images/textures/header_bg1.png') no-repeat center top, url(images/textures/11.png) 0px 0px; }
h1, h2, h3, h4, h5, h6 { font-family: 'Open Sans', Arial, sans-serif; padding-bottom: 6px; color: #474747; line-height: 1em; font-weight: 300; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: #2b2b2b; }
h1 { font-size: 41px; font-weight: 300; color: #5a5a5a; margin-top: 25px; margin-bottom:5px;}
h2 { font-size: 30px; font-weight: 300; margin-top: 25px; margin-bottom:5px;}
h3 { font-size: 23px; font-weight: 300; margin-top: 25px; margin-bottom:5px;}
h4 { font-size: 18px; font-weight: lighter; margin-top: 25px; margin-bottom:5px;}
h5 { font-size: 16px; font-weight: lighter; margin-top: 25px; margin-bottom:5px;}
h6 { font-size: 14px; font-weight: lighter; margin-top: 25px; margin-bottom:5px;}
p { font-family: 'Open Sans', Arial, sans-serif; font-size: 12px; color: #4c4c4c; text-align: justify; margin-top: 10px; margin-bottom: 10px; line-height: 25px;}
链接到我正在处理的网站:http://www.bpcdev.co.uk
答案 0 :(得分:1)
Google Fonts
网址
Http
到
Https
答案 1 :(得分:0)
将字体应用于标题时,请确保在CSS规则中指定了正确的字体粗细。
h1
{
font-family: Lobster, cursive;
font-weight: 400;
}