【发布时间】:2023-03-19 22:30:01
【问题描述】:
考虑到现代浏览器及其最新版本(对于打算供将来使用的网站),这种带有 ttf、svg 和 eot 的字体定义是否会成为 FF、IE、Chrome 和 Safari 的最佳解决方案?
以下是保证兼容性的最佳最小版本吗?换句话说,现在可以删除 svg 和 eot 还是 IE 仍然需要 eot 无法读取 ttf?
@font-face {
font-family: 'Somefont Regular';
src: url('somefont.eot');
src: local('Somefont Regular'),
local('Somefont'),
url('somefont.ttf') format('truetype'),
url('somefont.svg#font') format('svg');
【问题讨论】:
标签: css fonts svg truetype eot