关于@font-face

@font-face是CSS3中的一个模块,通过@font-face可以定义一种全新的字体,然后就可以通过css属性font-family来使用这个字体了,
即使操作系统没有安装这种字体,网页上也会正常显示出来。

用法:

<style> 
@font-face
{
font-family: myFirstFont;
src: url('Sansation_Light.ttf'),
     url('Sansation_Light.eot'); /* IE9+ */
}

div
{
font-family:myFirstFont;
}
</style>

猜你喜欢

转载自blog.csdn.net/freeky_ge/article/details/80449527