Mee*_*m R 2 css firefox internet-explorer magento font-face
我有Magento Multi商店.我已经使用Font-face工具包加载了字体系列.Font face系列在firefox和IE中不起作用.
码:
@font-face {
font-family: 'zrnicregular';
src: url('../fonts/zrnic_rg-webfont.eot');
src: url('../fonts/zrnic_rg-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/zrnic_rg-webfont.woff') format('woff'),
url('../fonts/zrnic_rg-webfont.ttf') format('truetype'),
url('../fonts/zrnic_rg-webfont.svg#zrnicregular') format('svg');
font-weight: normal;
font-style: normal;
}
Main Store URL : firststore.com
Secondary store URL : secondstore.com.
Run Code Online (Sandbox Code Playgroud)
这个font-face在我的主商店中在所有浏览器中都能正常工作.但在辅助存储中字体未在Firefox和IE中正确加载 我对两个商店都使用相同的主题.
帮助解决此问题.
在辅助域中,样式表是从第一个域加载的,因此由于跨域策略,字体在IE和Firefox上被阻止.将此添加到您的htaccess中,以允许您的辅助网站使用第一个字体:
<FilesMatch "\.(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "http://example.com"
</IfModule>
</FilesMatch>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1043 次 |
| 最近记录: |