CSS导入字体问题
我正在尝试从网络工具包导入字体。 代码就位,字体上传到服务器,但不会在现场显示。
CSS
@font-face {
font-family: 'gauntlet_thinregular';
src: url('http://dharmafund.net/fonts/gauntletthin_tb-webfont.eot');
src: url('http://dharmafund.net/fonts/gauntletthin_tb-webfont.eot?#iefix') format('embedded-opentype'),
url('http://dharmafund.net/fonts/gauntletthin_tb-webfont.woff2') format('woff2'),
url('http://dharmafund.net/fonts/gauntletthin_tb-webfont.woff') format('woff'),
url('http://dharmafund.net/fonts/gauntletthin_tb-webfont.ttf') format('truetype'),
url('http://dharmafund.net/fonts/gauntletthin_tb-webfont.svg#gauntlet_thinregular') format('svg');
font-weight: normal;
font-style: normal;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'gauntlet_thinregular'!important;
}
我在Wordpress安装上试过这段代码,它工作正常,但它不适用于我正在使用的其他平台(CrowdfundHQ)。 有什么想法吗?
网站网址:http://dharma-fund.crowdfundhq.com
谢谢
字体现在正在加载,将以下代码添加到.htaccess中
<FilesMatch ".(ttf|ttc|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
链接地址: http://www.djcxy.com/p/60803.html
