如何使用CSS将自定义字体插入文本? [英] How do I insert a custom font to text with CSS?

查看:93
本文介绍了如何使用CSS将自定义字体插入文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
如何在CSS中使用自定义字体

Possible Duplicate:
How would I use custom fonts in CSS

我如何使用CSS在<div>中设置自定义字体类型?

How can i use CSS to set a custom font type in, lets say, a <div> ?

我已经看到过有关@font-face的内容...但是在IE或Chrome中似乎不起作用.

I've seen something mentioned about @font-face ... but that doesn't seem to work in IE or Chrome.

推荐答案

@ font-face已在所有浏览器中得到了全面支持,即使在ie中也是如此. 请注意,某些浏览器需要将字体转换为特定格式. 使用 fontsquirrel 来实现.

@font-face is fully suported in every browser, even in ie. Notice, that some browsers need fonts to be converted to specific format. Use fontsquirrel to do that.

有一种通过 google webfonts

您还应该阅读

这篇关于如何使用CSS将自定义字体插入文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆