考虑类似的 CSS 代码:
@font-face {
font-family: 'MyFont';
src: url('../fonts/MyFont.eot');
src: local('Proxima'), url('../fonts/MyFont.woff') format('woff'), url('../fonts/MyFont.ttf') format('truetype'), url('../fonts/MyFont.svg') format('svg');
font-weight: normal;
font-style: normal;
}
此代码是否确定更多的 HTTP 请求来下载所有格式,或者浏览器是否选择最佳支持的格式?
最佳答案
不,浏览器将选择一种兼容格式。请随意添加任意数量的来源:)
关于css - @font-face 中的格式越多,是否决定了更多的 http 请求?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10338152/