矢量字体图标
2015-05-19 10:30
148 查看
1、首先使用 iconfont.cn在线生成矢量图标
2、然后,将生成的矢量字体下载到本地,使用font-face在网页上定义该矢量图标对应的字体,最后引用该自定义的字体。
2、然后,将生成的矢量字体下载到本地,使用font-face在网页上定义该矢量图标对应的字体,最后引用该自定义的字体。
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>矢量字体图标应用</title> <style> /*font-face声明字体*/ @font-face { font-family: 'iconfont'; src: url('vectorimg/webfont.eot'); src: url('vectorimg/webfont.eot?#iefix') format('embedded-opentype'), url('vectorimg/webfont.woff') format('woff'), url('vectorimg/webfont.ttf') format('truetype'), url('vectorimg/webfont.svg#webfont') format('svg'); /* IE9*/ /* IE6-IE8 */ /* chrome、firefox */ /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ /* iOS 4.1- */ } /*定义使用iconfont的样式*/ .iconfont{ font-family:"iconfont"; font-size:28px;font-style:normal; -webkit-text-stroke-width: 0.2px; /*防止边缘锯齿状 */ -webkit-font-smoothing: antialiased; } </style> </head> <body> <i class="iconfont">欢迎您</i> </body> </html>
相关文章推荐
- 分享一组矢量图标–UX图标字体库
- 如何应用Font Awesome矢量字体图标
- 矢量图标字体自定义li编号样式
- iconfont-矢量图标字体的运用
- Font Awesome:精心打造的 Twitter Boostrap 矢量字体图标
- 制作自定义图标字体,html引用web svg矢量字体
- Font Awesome 4.0.3 提供了369个网页常用的矢量字体图标
- CSS3 iconfont矢量字体图标的使用
- 【转载】WPF自定义控件与样式(1)-矢量字体图标(iconfont)
- 矢量图标,图标字体的使用,font awesome
- 使用网络字体作为矢量图标
- 如何应用font Awesome矢量字体图标介绍
- 微信小程序中使用阿里矢量字体图标
- 图标字体,矢量图标
- WPF自定义控件与样式(1)-矢量字体图标(iconfont)
- WPF使用矢量字体图标(阿里巴巴iconfont)
- WPF自定义控件与样式(1)-矢量字体图标(iconfont)
- WPF矢量字体图标(iconfont)
- 原来矢量图标可以用字体来设置
- 利用阿里巴巴的矢量图片库工具网站制作自己的图标字体