http://thereferraladvantage.com/preview/
base.css中的CSS:
@font-face {
font-family: 'gotham';
font-weight: 300;
font-style: normal;
src: url('../fonts/gotham_light.eot'); /* IE9 Compat Modes */
src: url('../fonts/gotham_light.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/gotham_light.woff') format('woff'), /* Modern Browsers */
url('../fonts/gotham_light.ttf') format('truetype') /* Safari, Android, iOS */
;
}
@font-face {
font-family: 'gotham';
font-weight: 400;
font-style: normal;
src: url('../fonts/gotham_book.eot'); /* IE9 Compat Modes */
src: url('../fonts/gotham_book.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/gotham_book.woff') format('woff'), /* Modern Browsers */
url('../fonts/gotham_book.ttf') format('truetype') /* Safari, Android, iOS */
;
}
@font-face {
font-family: 'gotham';
font-weight: 400;
font-style: italic;
src: url('../fonts/gotham_bookitalic.eot'); /* IE9 Compat Modes */
src: url('../fonts/gotham_bookitalic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/gotham_bookitalic.woff') format('woff'), /* Modern Browsers */
url('../fonts/gotham_bookitalic.ttf') format('truetype') /* Safari, Android, iOS */
;
}
@font-face {
font-family: 'gotham';
font-style: normal;
font-weight: 500;
src: url('../fonts/gotham_medium.eot'); /* IE9 Compat Modes */
src: url('../fonts/gotham_medium.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/gotham_medium.woff') format('woff'), /* Modern Browsers */
url('../fonts/gotham_medium.ttf') format('truetype') /* Safari, Android, iOS */
;
}
@font-face {
font-family: 'gotham';
font-weight: 500;
font-style: italic;
src: url('../fonts/gotham_mediumitalic.eot'); /* IE9 Compat Modes */
src: url('../fonts/gotham_mediumitalic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/gotham_mediumitalic.woff') format('woff'), /* Modern Browsers */
url('../fonts/gotham_mediumitalic.ttf') format('truetype') /* Safari, Android, iOS */
;
}
Firebug显示浏览器正在调用woff和tff文件,两个文件的状态均为200(OK)。它关注我,不应该只是召唤WOFF,而不是回归到TTF?
答案 0 :(得分:0)
回答了我自己的问题。交叉起源嵌入是问题所在。使用www。调用.css文件,我在没有www的情况下打开网站。这就是为什么我总是把强制www的.htaccess行。如果失踪则添加,这只是一个很好的做法。除了我错过了这个,因为我还没有推出它,我只是测试&摆弄。