0

フォントを埋め込もうとしましたが、何も表示されません。すべてのページでランダムなセリフ フォントを取得します。私が使用しているコード...

/*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;}
4

1 に答える 1

0

src:url(''); で絶対リンクを使用してみてください。範囲。これで問題が解決した場合、フォント ファイルが間違ったディレクトリにあるか、.htaccess の書き換えに問題がある可能性があります。

于 2013-06-21T15:22:38.157 に答える