Css .htaccess@font-face在firefox中不起作用

Css .htaccess@font-face在firefox中不起作用,css,.htaccess,Css,.htaccess,@字体用于测试页面。但不是wordpress页面 样本页 <html> <style> /*@font-face { font-family: 'leb'; src: url(fonts/leb.ttf); src: url('fonts/leb.eot?#iefix') format('embedded-opentype'), url('fonts/leb.woff') format('woff'), url('fonts/leb.ttf') f

@字体用于测试页面。但不是wordpress页面

样本页

<html>
<style>
/*@font-face {
font-family: 'leb';
src: url(fonts/leb.ttf);
src: url('fonts/leb.eot?#iefix') format('embedded-opentype'),
     url('fonts/leb.woff') format('woff'), 
     url('fonts/leb.ttf')  format('truetype'), 
     url('fonts/leb.svg#leb-webfont') format('svg');
}*/
 @font-face {
font-family: 'leb';
src: url('http://www.swaidanews.com/CMS/wp-content/uploads/fonts1/leb.ttf');
src: url('http://www.swaidanews.com/CMS/wp-content/uploads/fonts1/leb.eot');
src: url('http://www.swaidanews.com/CMS/wp-content/uploads/fonts1/leb.eot?#iefix') format('embedded-opentype'),
     url('fonts/leb.woff') format('woff'), 
     url('http://www.swaidanews.com/CMS/wp-content/uploads/fonts1/leb.ttf')  format('truetype'), 
     url('http://www.swaidanews.com/CMS/wp-content/uploads/fonts1/leb.svg#leb-webfont') format('svg');
}
body
{
font-family:leb;
}
</style>
<body>
<h1>White-cheeked Barbet (Megalaima viridis)</h1>
<p>
Order:  Piciformes<br />
Family: Megalaimidae<br />
Genus:  Megalaima
</p>

<h2>Megalaimidae - Asian Barbets</h2>

<div>The White-cheeked Barbet or Small Green Barbet (Megalaima viridis) has a distinctive supercilium and a broad white cheek stripe below the eye and is endemic to the forest areas of the Western Ghats and adjoining hills. </div>

<h2>Monotypic species (Endemic)</h2>

Megalaima viridis - Western Central & Southern West India, from South West Madhya Pradesh South to Palni, Nilgiri Hills, Bangalore area and Western Tamil Nadu.

<h3>Conservation status - Least Concern</h3>

<h2>Local Names</h2>
<p>Tamil - Chinna Kukkuruvaan (சின்ன குக்குறுவான்), Kattu Kukkuruvaan (காட்டுக் குக்குறுவான்), Hindi - Chhota basanta, Gujarat - Nano lilo kansa, Karnataka - Sonna hasira barbet, Malayalam - chinna kutturuvan</p>

<h2>White-cheeked Barbet (Megalaima viridis) Song/Call</h2>

http://youtu.be/6IpU_dLropY
</body>
</html>

/*@字体{
字体系列:“leb”;
src:url(font/leb.ttf);
src:url('font/leb.eot?#iefix')格式('embedded-opentype'),
url('fonts/leb.woff')格式('woff'),
url('font/leb.ttf')格式('truetype'),
url('font/leb.svg#leb webfont')格式('svg');
}*/
@字体{
字体系列:“leb”;
src:url('http://www.swaidanews.com/CMS/wp-content/uploads/fonts1/leb.ttf');
src:url('http://www.swaidanews.com/CMS/wp-content/uploads/fonts1/leb.eot');
src:url('http://www.swaidanews.com/CMS/wp-content/uploads/fonts1/leb.eot?#iefix“)格式('embedded-opentype'),
url('fonts/leb.woff')格式('woff'),
url('http://www.swaidanews.com/CMS/wp-content/uploads/fonts1/leb.ttf“)格式('truetype'),
url('http://www.swaidanews.com/CMS/wp-content/uploads/fonts1/leb.svg#leb-webfont')格式(“svg”);
}
身体
{
字体系列:leb;
}
白颊芭芭鱼

订单:Piciformes
家系:巨蝇科
属:巨鳃亚目

亚洲触须 白颊芭芭或小绿芭芭(Megalaima viridis)有着独特的高眼圈和眼睛下方宽阔的白色脸颊条纹,是西高止山脉和毗邻丘陵的森林地区特有的。 单型种(特有) 绿色巨藻-印度中西部和西南部,从中央邦西南部向南至帕尼、尼尔吉里山、班加罗尔地区和泰米尔纳德邦西部。 保育状况-最少关注 本地名称 泰米尔-中国库库鲁万(சின்ன குக்குறுவான்), 卡图·库库鲁万(காட்டுக் குக்குறுவான்), 印地语-巴桑塔、古吉拉特邦-堪萨斯州纳诺利洛、卡纳塔克邦-索纳哈西拉巴比特、马拉雅拉姆-中国库图鲁万

白颊芭比鸟(绿巨人)歌曲/呼叫 http://youtu.be/6IpU_dLropY
该页面在firefox中运行良好。但wordpress网站页面在ie8和chrome中运行良好

所以我在寻找解决方案。但这个示例页面是如何工作的

无论如何,找到这个

Access-Control-Allow-Origin: [web url]
<FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css)$">
  <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "http://example.com"
  </IfModule>
</FilesMatch>

AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/x-font-woff woff
访问控制允许来源:[web url]
标题集访问控制允许原点“http://example.com"
AddType应用程序/vnd.ms-fontobject.eot
AddType字体/ttf.ttf
AddType字体/otf.otf
AddType应用程序/x-font-woff woff
现在,我在.htaccess文件中添加了这个。我只是在.htaccess文件的底部添加了上面的代码。网站显示了错误

这是我的.htacess文件

RewriteEngine on
# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName swaidanews.com
AuthUserFile /home/swaidane/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/swaidane/public_html/_vti_pvt/service.grp

RewriteCond %{HTTP_REFERER} !^http://swaidanews.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://swaidanews.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.swaidanews.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.swaidanews.com$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://www.swaidanews.com [R,NC]

RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ "http\:\/\/www\.swaidanews\.com\/site\/" [R=301,L]
重新编写引擎打开
#-首页-
IndexIgnore.htaccess*/.??**~*#*/HEADER**/README**/\u vti*
命令拒绝,允许
全盘否定
通融
命令拒绝,允许
全盘否定
AuthName swaidanews.com
AuthUserFile/home/swaidane/public_html/_vti_pvt/service.pwd
AuthGroupFile/home/swaidane/public_html/_vti_pvt/service.grp
重写cond%{HTTP_REFERER}^http://swaidanews.com/.*$[NC]
重写cond%{HTTP_REFERER}^http://swaidanews.com$[NC]
重写cond%{HTTP_REFERER}^http://www.swaidanews.com/.*$[NC]
重写cond%{HTTP_REFERER}^http://www.swaidanews.com$[NC]
重写规则。*\(jpg | jpeg | gif | png | bmp)$http://www.swaidanews.com [R,NC]
重写cond%{HTTP_HOST}^*$
重写规则^/?$“http\:\/\/www\.swaidanews\.com\/site\/”[R=301,L]

如何添加代码???

Is
http://.com
correct?这只是示例代码。这不是问题。当添加到.htaccess时,我将原始网站url放入。只想知道在.htaccess文件中放置此代码的位置。因为.htaccess文件alreday有一些内容。