我在Google上收到了一条警告:
资源解释为Font但使用MIME类型application/octet-stream传输:".../Content/Fonts/iconFont.ttf".
即使我有这个警告它也有效,但我更喜欢避免这个警告.
这里是我的报关表:
@font-face {
font-family: 'iconFont';
src: url('../Fonts/iconFont.eot?#iefix') format('embedded-opentype'),
url('../Fonts/iconFont.svg#iconFont') format('image/svg+xml'),
url('../Fonts/iconFont.woff') format('font/x-woff'),
url('../Fonts/iconFont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
Run Code Online (Sandbox Code Playgroud)
我已经搜索了其他帖子但到目前为止没有运气.
请注意,我的服务器是Microsoft的IIS.
任何想法我怎么能避免这个警告?
谢谢.
我发现有些网站使用css标签style.css?ver=1.这是什么?
目的是?ver=1什么?
我如何在代码中执行此操作?