2013-06-21 4 views
0

J'ai essayé d'incorporer une police et rien n'apparaît. Je viens d'obtenir une police serif aléatoire sur chaque page. Code J'utilise ...Texte incorporé ne fonctionnant pas en 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; 

} 

Et la partie mise en forme de texte ...

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

Répondre

0

Essayez d'utiliser le lien absolu dans votre src: url (''); région. Si cela résout le problème, cela signifie que les fichiers de polices sont dans le mauvais répertoire ou qu'il pourrait y avoir un problème avec la réécriture .htaccess.

Questions connexes