最佳答案
我遇到了类似的问题。 而是使用谷歌提供的标准代码,
<link href='https://fonts.googleapis.com/css?family=Poiret+One' rel='stylesheet' type='text/css'>
我添加了一个 crossorigin="anonymous"
属性标签。
<link href='https://fonts.googleapis.com/css?family=Poiret+One' rel='stylesheet' type='text/css' crossorigin="anonymous">
老实说,我不知道真正的原因,但它奏效了。希望这对你也有用。
关于css - Google Webfonts 无法正确呈现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16824540/