您有两种方法可以做到这一点:
上传服务器中的"ttf"和"eot"(用于IE9)文件,Century Gothic Font并在主要内容中写入CSS:
@font-face {
font-family: myFirstFont;
src: url('URL/CenturyGothic.ttf'),
url('URL/CenturyGothic.eot'); /* IE9 */
}
Run Code Online (Sandbox Code Playgroud)您可以使用Century Gothic替代品(如Didact Gothic)Google Web fonts,因此,在<head>标签中放置此代码:
<link href='http://fonts.googleapis.com/css?family=Didact+Gothic' rel='stylesheet' type='text/css'>
Run Code Online (Sandbox Code Playgroud)
而且,在你的CSS:
font-family: 'Didact Gothic', sans-serif;
Run Code Online (Sandbox Code Playgroud)| 归档时间: |
|
| 查看次数: |
3845 次 |
| 最近记录: |