css - 谷歌浏览器字体效果不佳

标签 css

大家好,我有这段代码,谷歌浏览器无法呈现字体:(

@font-face{
font-family: 'carial';
src: url('./fonts/bpg.eot');
src: url('./fonts/bpg.eot?#iefix') format('embedded-opentype'),
url('./fonts/bpg.woff') format('woff'), 
url('./fonts/bpg.ttf') format('truetype'), 
url('./fonts/bpg.svg#bpg') format('svg');
font-weight: normal;
font-style: normal;
}

enter image description here ^^ Chrome

enter image description here 火狐浏览器 enter image description here

探索者

最佳答案

首先,字体可以在所有浏览器上正常工作并不是强制性的…… 我们的责任是手动检查所有主要使用的浏览器。

如果不能在任何浏览器中工作,那么我们可以从新网站制作新字体。我们可以从 diff-2 字体生成器网站制作字体。您可以使用此关键字在 Google 上搜索...“font face generator”,并将获得更多与此相关的链接。

关于css - 谷歌浏览器字体效果不佳,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24733876/

相关文章:

html - 不占用其子级宽度或高度的元素

html - 导航宽度不随内容改变

javascript - 在 Vue.JS 中显示 Axios 响应数据

html - 为什么文本在带有 float : left; not wrapping? 的图像内部流动

javascript - 返回 vanilla JS 中元素的 css 属性

html - 如何在 Bootstrap 3 中设置 DIV 的响应高度我附上代码?

javascript - Bootstrap 面板作为下拉菜单?

html - 如何在链接中垂直居中文本

html - CSS 元素旋转

html - 如何防止输入中的文本被覆盖