不能将字体用于自定义字体



我一直在尝试使用自定义字体,
但它没有显示在我的网站上。

/*TEXT*/
p.fontcheck {
font-family: MTCORSVA bold;
font-weight: normal;
font-style: normal;
}
/*fonts*/
@font-face {
font-family: "MTCORSVA";
src: url("/eccube_1/html/template/default/css/fonts/MTCORSVA.TTF") format("TTF");
}
<p class="fontcheck">HELLO TEST</p>

我也尝试在整个路径中URL,或者也插入HTTP or HTTPS
结果未显示。
我在服务器中字体的原始路径是

/public_html/azlily.bex.jp/eccube_1/html/template/default/css/fonts/MTCORSVA.TTF

试试这个,这行得通!

/*TEXT*/
p.fontcheck {
font-family: MTCORSVA bold;
font-weight: normal;
font-style: normal;
}
/*fonts*/
@font-face {
font-family: MTCORSVA;
src: url(http://azlily.bex.jp/eccube_1/html/template/default/css/fonts/MTCORSVA.TTF);
}
<p class="fontcheck">HELLO TEST</p>

最新更新