<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>fontface</title>
<style type="text/css"> /*完美解决css3 web-safe字体各种浏览器兼容问题*/
@font-face {
font-family: 'myfont';/*定义字体名称*/
src: url('font/abandone-webfont.eot');/*兼容eot*/
src: url('font/abandone-webfont.eot?#iefix') format('embedded-opentype'),
url('font/abandone-webfont.woff2') format('woff2'),
url('font/abandone-webfont.woff') format('woff'),/*火狐支持woff,woff2,opentype字体*/
url('font/abandone-webfont.ttf') format('truetype'),/*基于webkit内核支持truetype字体*/
url('font/abandone-webfont.svg#abandoned_bitplaneregular') format('svg');
font-weight: normal;
font-style: normal;
font-stretch:ultra-expanded;/*定义字体符合拉伸*/
}
#ff{font-family:myfont; font-size: 50px;}
</style>
</head>
<body>
<p id="ff">css3,font css test123456</p>
</body>
</html>

字体格式转换推荐网站https://www.fontsquirrel.com/tools/webfont-generator

最新文章

  1. SVN合并操作实践
  2. 【leetcode】Minimum Window Substring (hard) ★
  3. c# 动态调用webserver
  4. PHP-PCRE正则表达式函数
  5. 九度OJ 1510 替换空格
  6. j2ee爬坑行之二 servlet
  7. tf–idf算法解释及其python代码实现(下)
  8. Grant的时候报错的解决:Access denied for user &amp;#39;root&amp;#39;@&amp;#39;localhost&amp;#39; (using password: YES)
  9. div套div 里面div有浮动 外面div自适应高度
  10. [分享]Host文件的原理解释及应用说明
  11. 201521123091 《Java程序设计》第6周学习总结
  12. 一 : springmvc常用注解
  13. LINUX下printf输出字体的特效
  14. PAT1017:Queueing at Bank
  15. (转)调用System.gc没有立即执行的解决方法
  16. JS输入框统计文字数量
  17. LeetCode(34):搜索范围
  18. MySQL mysqldump 数据备份
  19. 实验的方差分析(R语言)
  20. K8S 详细介绍

热门文章

  1. PLSQL_Oracle Logon Trigger的建立
  2. HUST 1010 The Minimum Length(KMP,最短循环节点,即i-Next[i])
  3. Log4j乱码
  4. 基于NPOI的Execl导入导出例子
  5. .NET 文件相关的所有操作
  6. .NET 添加/删除Cookie
  7. ajaxSubmit中option的参数
  8. Chapter Data Modification &amp; Chapter Data Validation
  9. Spark History Server配置使用
  10. Appium启动服务报错