@font-face にまったく同じコードを使用している 2 つのサイトがあります。フォント ファイルはそれぞれのサイトでホストされており、パスは正しいです。
1つは機能し、1つは機能しません。(そしてもちろん、クライアントではなく、私の個人的なサイトで動作します!)
これについての新鮮な視点に本当に感謝しています!
機能する場所:
サイト: http://example.com/
CSS ファイル: http://365.example.com/index.php?css=photos/style.v.1275845154
関連するコード:
@font-face {
font-family: 'JournalRegular';
src: url('./themes/fonts/journal.eot');
src: local('Journal Regular'), local('Journal'), url('./themes/fonts/journal.ttf') format('truetype');
}
body{
background: url("http://labs.example.com/personal/library/images/BG.jpg");
height: 100%;
width: 100%;
margin: 0;
padding: 0;
font-family: 'JournalRegular', Georgia, 'Times New Roman', Times, sans-serif;
color: #999;
}
機能しない場所:
CSS ファイル: http://www.example.org/wp-content/themes/theme/style.css
関連するコード:
@font-face {
font-family: 'JournalRegular';
src: url('http://example.org/wp-content/themes/theme/fonts/journal.eot');
src: local('Journal Regular'), local('Journal'), url('http://example.org/wp-content/themes/theme/fonts/journal.ttf') format('truetype');
}
.title h1{
float:left;
background:url(images/blt-ttl1?.png) no-repeat 0 4px;
margin:0px 0 5px;
/* padding:8px 0 8px 34px; */
color:#bd5f01;
letter-spacing: .5pt
font:24px/26px 'JournalRegular', Georgia, 'Times New Roman', Times, serif;
}
どんな助けでも大歓迎です!