html中怎样引入外部字体文件路径,CSS引入外部字体
生活随笔
收集整理的這篇文章主要介紹了
html中怎样引入外部字体文件路径,CSS引入外部字体
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
.SVG,適用于Chrome、IPhone
那我們如何獲得這四種文件呢?這里推薦一個線上字體轉換軟件,地址如下:
https://www.fontsquirrel.com/tools/webfont-generator
2.引入外部文件@font-face?{font-family:?'HansHandItalic';src:?url('fonts/hanshand-webfont.eot');src:?url('fonts/hanshand-webfont.eot?#iefix')?format('embedded-opentype'),?????url('fonts/hanshand-webfont.woff')?format('woff'),?????url('fonts/hanshand-webfont.ttf')?format('truetype'),?????url('fonts/hanshand-webfont.svg#webfont34M5alKg')?format('svg');font-weight:?normal;font-style:?normal;}
3.使用字體body{font-family:?'YaHei?Consolas?Hybrid';font-size:?16px;}
總結
以上是生活随笔為你收集整理的html中怎样引入外部字体文件路径,CSS引入外部字体的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 21天学通HTML5和CSS3第二版,2
- 下一篇: 2019考研调剂信息 计算机专业,201