【发布时间】:2016-11-03 21:04:30
【问题描述】:
无法在 Chrome 或 Chrome Canary 中使用 google fonts open sans 获得 300 的权重。
我已经在codepen 中尝试过this 和this,但无济于事。在边缘工作正常。
HTML
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600" rel="stylesheet">
<div class="header-pic text-align-center">
<h1>We make dream places <br> affordable for you.</h1>
</div>
CSS
body {
font-family: 'Open Sans', sans-serif;
}
.header-pic h1{
font-size: 80px;
font-weight: 300;
}
有什么想法吗?
编辑: 澄清一下,不工作意味着没有显示 300 和 400 之间的差异。添加了屏幕截图。
添加了cmets截图和codepen,因为它显示的冷漠更清晰。
http://codepen.io/anon/pen/YWVLYE 这就是它应该是的样子: 这是它在我的 chrome 中的外观:
【问题讨论】:
-
定义“不工作”。它看起来在你的例子中为我在 Chrome 中工作
-
对我来说很好
-
它在 Mozilla 和 chrome 上都可以正常工作
-
我在本地运行时也遇到了这个问题。起初我以为这只是我的眼睛。这是 OP 的 Codepen 演示的修改版本,它们彼此相邻显示:codepen.io/anon/pen/YWVLYE。这是来自 Chrome 的屏幕截图:i.imgur.com/dpIDEM4.png
-
font-weight: 300;正在您的 codepen 示例中工作