Ron*_*Ron 7 html css google-font-api
我通过以下方式在html页面中使用Google Open Sans字体:
<link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
Run Code Online (Sandbox Code Playgroud)
只有font-weight: 600;使字体变粗.其他值似乎没有什么区别.如何使用CSS规则获得此特定字体的中间字体权重?或者我必须使用其他字体吗?
您使用的只包含400字体粗细字体文件.为了获得其他字体粗细字体文件,您还需要选择字体粗细,例如
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700');
Run Code Online (Sandbox Code Playgroud)
请注意,您使用的字体权重越多,加载这些文件所需的时间就越多.要添加更多字体粗细,请按照以下步骤操作.
