zoukankan      html  css  js  c++  java
  • css引入外部字体使网站字体更美观

    @font-face{font-family: myFont;src:url("../font/timesi.ttf");src:url("../font/timesbi.ttf");src:url("../font/timesbd.ttf");src:url(../font/times.ttf);}
    *{font-family:myFont;(自己起的名字可以随便)}

    @font-face  {src:url(为你外部字体文件的位置)格式要为(

    eot、、ttf、svg 、otf、woff

    ttf、otf  支持Firefox 3.5、Safari、Opera

    EOT,适用于Internet Explorer 4.0+

    SVG,适用于Chrome、IPhone

    ))}

    不同的浏览器会自动下载自己所支持的格式。   引入font格式下的字体无效

     字体格式转换到    :https://www.fontsquirrel.com/tools/webfont-generator

    字体包下载地址:http://www.font5.com.cn/zitixiazai/2/495.html

           :http://www.qiuziti.com/fontlist.aspx?fn=times+new+roman+&fz=1

    http://www.zitixiazai.org/show.asp?root=5094

    字体格式转换地址:http://www.qiuziti.com/tool_fontconvert.html

    上面的字体包中有如上代码中四个ttf,第二个字体包下载地址只会下载来一个ttf格式文件。四个ttf文件的分别代码什么啊?求指教

    小程序二维码

    这些年,我们经历了多轮的淘汰赛,每轮淘汰赛都面临不同的对手,但每轮淘汰赛中我们都发展了.
  • 相关阅读:
    linux NFS 的安装准备
    linux Sersync 参数说明
    linux测试 Sersync 是否正常
    linux开启 Sersync 守护进程进行数据同步
    linux 配置 Sersync
    Sersync 上配置 Sersync 服务
    linux Sersync 上配置客户端
    PowerDesigner一些小技巧
    C# System.Attribute(验证类)
    C#:实体类中做数据验证
  • 原文地址:https://www.cnblogs.com/future-zmq/p/7402657.html
Copyright © 2011-2022 走看看