<!DOCTYPE html>
<html>
<head>
	<title> 字体文件引用</title>
<style type="text/css">	
@font-face {
    font-family: 'fontsTest'; 
    src: url('PingFangSCRegular.ttf'); /*fonts file dirpath*/
}
html,body {
	font-family: fontsTest, sans-serif; 	
    font-weight: 700; /*100 400 700*/
    font-style: normal; /*normal italic oblique*/
    font-size: 24px; /*12px 22px 24px*/
}
</style>
</head>
<body>
	ABCDEFGHIJKLMNOPQRSTUVWXYZ<BR>
	abcdefghijklmnopqrstuvwxyz<BR>
	你在我心里永远是一个可爱的人.<BR>
</body>
</html>

何星星原创文章仅用于个人学习,当前页面暂不支持复制操作,了解详情或文章转载请 点此 继续!
分类: 前端开发

0 条评论

发表回复

Avatar placeholder

您的电子邮箱地址不会被公开。 必填项已用*标注