通过css加载远程字体示例代码
摘要:@font-face{font-family:'C39HrP72DlTt';src:url('C39HrP72DlTt.eot');src:...
<style type="text/css">
@font-face {
font-family: 'C39HrP72DlTt';
src: url('C39HrP72DlTt.eot');
src: local('C39HrP72DlTt'),
url('C39HrP72DlTt.eot'),
url('C39HrP72DlTt.ttf') format('truetype'),
url('C39HrP72DlTt.woff') format('woff');
}
#bar {
font-size: 150px;
font-family: C39HrP72DlTt;
text-align: center;
}
</style>
<divid="bar">*china*</div>
结果
【通过css加载远程字体示例代码】相关文章:
上一篇:
多步骤进度条的实现原理及代码