我有一个网站在 Chrome 中显示错误。为了消除所有因素,我使用了 Google 的示例:
<html>
<head>
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Source+Serif+Pro|Source+Sans+Pro">
<style>
body {
font-family: 'Source Sans Pro', sans-serif;
font-size: 48px;
}
</style>
</head>
<body>
<div>Making the Web Beautiful in Source Sans Pro!</div>
<div style="font-family: 'Source Serif Pro', sans-serif">Making the Web Beautiful in Source Serif Pro!</div>
</body>
</html>
最佳答案
找到了,在我看来像是字体错误:
在分析了 Google 自己的网站后,我发现必须使用:
font-family: 'Source Sans Pro rev=1', sans-serif;
关于html - Google 网络字体 Source Sans Pro 在 Google Chrome 中以斜体显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39666095/