1.使用@font-face{}
@font-face
{
font-family: myFirstFont;
src: url('Sansation_Light.ttf'),
url('Sansation_Light.eot'); /* IE9 */
}
2.使用中文字体需要.ttf格式
3.使用less定义类
.fontFace(@name,@url){
@font-face {
font-family: '@{name}';
src: url('@{rootFont}@{url}');
}
}