相关疑难解决方法(0)

Google 字体:在 CSS 中定义自定义名称

是否可以为 Google 字体定义自定义名称?

例如。 <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>

如何使用自定义名称的“Open Sans”?

div {
   font-family: 'custom'; // to be same as 'Open Sans'
}
Run Code Online (Sandbox Code Playgroud)

使用这里的@font-face回答是不可能的,因为我不必源文件(ttf、eot、woff,...)。url

指向 Google 上源文件的链接cdn将解决此问题。

css fonts webfonts font-face google-font-api

6
推荐指数
1
解决办法
3844
查看次数

标签 统计

css ×1

font-face ×1

fonts ×1

google-font-api ×1

webfonts ×1