用户电脑上没有的字体,在网站上怎么显示?
用css3的属性@font-face
a.html:
<style>
@font-face {
font-family: 'thenautigal rob';
src:url('thenautigal rob.ttf');
}
#div0{
font-size:40px;
color:red;
font-family: 'thenautigal rob';
}
</style>
<div id="div0" >Merry Christmas</div>