@ font-face中的其他格式是否确定了更多的http请求? [英] Do more formats in @font-face determine more http requests?
本文介绍了@ font-face中的其他格式是否确定了更多的http请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
考虑类似的CSS代码:
Consider a similar css code:
@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请求来下载所有格式,还是浏览器选择了受支持的最佳格式?
Does this code determine more HTTP requests to download all the formats or does the browser choose the best supported format?
推荐答案
不会,浏览器将选择一种兼容格式.随意添加尽可能多的源:)
Nope, browser will choose one compatible format. Feel free to add as many sources as you like :)
这篇关于@ font-face中的其他格式是否确定了更多的http请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文