【发布时间】:2016-11-10 10:06:37
【问题描述】:
我在我的网站上使用Google Roboto Font,但我有一点实现问题。 Google 允许我们在导入前调整字体粗细:
700
粗细字体的导入代码@import url('https://fonts.googleapis.com/css?family=Roboto:700');
300
粗细字体的导入代码@import url('https://fonts.googleapis.com/css?family=Roboto:300');
我的问题是,CSS 中的用法不依赖于两个导入。这意味着它总是
font-family: 'Roboto', sans-serif;
我无法选择要使用的 2 种导入字体中的哪一种。
【问题讨论】:
-
font-weight----- -
没想到
标签: html css fonts google-font-api