2013-06-21 40 views
0

我試圖嵌入字體並沒有顯示出來。我只是在每一頁上都有一個隨機的襯線字體。我使用的代碼...文本嵌入不工作在CSS

/*fonts*/ 
@font-face { 
font-family: 'toltbold'; 
src: url('../fonts/titilliumtext25l001-webfont-webfont.eot'); 
src: url('../fonts/titilliumtext25l001-webfont-webfont.eot?#iefix') format('embedded- opentype'), 
    url('../fonts/titilliumtext25l001-webfont-webfont.woff') format('woff'), 
    url('../fonts/titilliumtext25l001-webfont-webfont.ttf') format('truetype'), 
    url('../fonts/titilliumtext25l001-webfont-webfont.svg#titilliumtext25l800_wt') format('svg'); 
font-weight: normal; 
font-style: normal; 

} 

@font-face { 
font-family: 'tiltbody'; 
src: url('../fonts/titilliumtext25l003-webfont-webfont.eot'); 
src: url('../fonts/titilliumtext25l003-webfont-webfont.eot?#iefix') format('embedded -opentype'), 
    url('../fonts/titilliumtext25l003-webfont-webfont.woff') format('woff'), 
    url('../fonts/titilliumtext25l003-webfont-webfont.ttf') format('truetype'), 
    url('../fonts/titilliumtext25l003-webfont-webfont.svg#titilliumtext25l400_wt') format('svg'); 
font-weight: normal; 
font-style: normal; 

} 

和文本格式的部分是...

/*Text formatting*/ 
.heading {color: #000; font-size: 28px; font-family: tiltbold; line-height: 14px;} 
.bodybold {color: #000; font-size: 18px; font-family: tiltbold; line-height: 14px;} 
.body {color: #000; font-size: 18px; font-family: tiltbody; line-height: 20px;} 
.bodyred {color: #000; font-size: 18px; font-family: tiltbody; line-height: 14px;} 
.warning {color: #000; font-size: 12px; font-weight: bold; font-family: tiltbody; line-height: 14px;} 

回答

0

嘗試使用在你的src絕對鏈接:URL( '');區。如果解決了這個問題,則意味着字體文件位於錯誤的目錄中,或者.htaccess重寫可能存在問題。