[英]CSS, Font-face, Squirrel generator
我嘗試通過Squirrel了解生成的代碼,這是輸出:
@font-face {
font-family: 'someFont';
src: url('someFont.eot');
src: url('someFont.eot?#iefix') format('embedded-opentype'),
url('someFont.woff') format('woff'),
url('someFont.ttf') format('truetype'),
url('someFont.svg#someFont') format('svg');
font-weight: normal;
font-style: normal;
}
我不明白為什么第一個src: url('someFont.eot');
甚至是必需的,我確實了解IE問題,所以我了解以下要求: src: url('someFont.eot?#iefix') format('embedded-opentype'),
但是第一個src
的原因是什么?
最后要注意的是在#someFont
之后需要someFont.svg
的原因是為了防止某種錯誤嗎?
src: url('someFont.eot');
適用於IE9兼容模式,而src: url('someFont.eot?#iefix') format('embedded-opentype')
適用於IE6到IE8。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.