我想我正在使用与 b4 类似的代码,但似乎没有加载字体
<html>
<head>
<script src="http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:extralight,light,regular,bold"></script>
<style>
h1, h2, h3 { font-family: "Yanone Kaffeesatz"; color: red }
</style>
</head>
<body>
<h1>This is some text</h1>
</body>
</html>
最佳答案
您需要使用 <link>
包含字体标签。
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:extralight,light,regular,bold">
关于html - 调试 Google Web 字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3253064/