一般在AI、PS里用的特殊字体,在网页如何调用?
—》使用@font-face规则,网页设计师再也不必使用的”web-safe”的字体之一。兼容性:
IE9 只支持 .eot 类型的字体, Firefox, Chrome, Safari, 和 Opera 支持 .ttf 与.otf 两种类型字体.
注意: IE 8 及更早IE版本不支持@font-face 规则.使用:
① 配置字体, css/font/目录下
② 配置css:
<style>
/*字体1,迷你简硬笔行书*/
@font-face
{
font-family: myFirstFont;
src: url(../../Cn/css/font/Miniybhs.TTF);
font-weight:bold;
}
/*字体2,时尚中黑简体*/
@font-face
{
font-family: sszhongheiFont;
src: url(../../Cn/css/font/Shiszhongheijt.ttF);
font-weight:bold;
}
/*字体1,方正兰亭黑*/
@font-face
{
font-family: FZLTFont;
src: url(../../Cn/css/font/FZhengLT-gbk.ttF);
font-weight:bold;
}
div .desc
{
font-family:myFirstFont;
}
div .cateTheme{
font-family: sszhongheiFont;
}
div .name
{
font-family:FZLTFont;
}
</style>
附图: