@font-face 还是 sIFR 3?
我必须在网站中实现自定义字体,应该使用什么。客户正在提供自定义字体。
- 所有浏览器支持(包括 IE6 和所有 A 级浏览器)
- 文本可选
- 选项可见
- 可通过屏幕阅读器访问
- 如果 JS 存在则可成功降解 禁用
- 易于在更短的时间内实施和管理
- 移动浏览器兼容
- 性能问题更少
- 无需购买
- 也可以用作链接
- 字体应该看起来像 Photoshop
还是有其他更好且免费的解决方案包含所有这些功能?
I've to implement custom font in a website, What should be used. Client is providing custom fonts.
- All browser support (Including IE6 and in all A Grade Browsers)
- text Selectable
- Selection visible
- Accessible with screen reader
- Successfully degradable if JS is
disabled - Easy to implement and manage in less time
- Mobile browser compatible
- less performance issue
- No purchase needed
- Can be used as a link also
- Font should look smooth like in
Photoshop
or is there any other better and free solution which has all these things?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
为什么不直接使用防弹 @font-face 语法如 Paul Irish 所描述的< /a> 并在条件 IE 标记中使用替代样式和 javascript 进行备份?
IE:
此设置无法立即满足您的要求的唯一部分是全面的移动兼容性。一旦确定要支持哪些平台,该解决方案就应该具有足够的可扩展性,以支持所有平台。
Why not just use the bulletproof @font-face syntax as described by Paul Irish and back it up with alternate styles and javascript in conditional IE tags?
IE:
The only part of your requirements that is not met by this setup right off the bat is mobile compatibility across the board. Once you determine what platforms you want to support, this solution should be extensible enough to allow support for all of them as well.
如果我是你,我会使用 @font-face 并向旧浏览器提供 javascript 解决方案(如 cufón)。
If I were you id use @font-face and deliver a javascript solution (like cufón) to the older browsers.
@font-face 并不像您希望的那样支持 IE6。因此,如果这是您的要求,请不要使用它。
浏览器一致性也是 @font-face 的一个大问题
@font-face does not support IE6 as good as you would want it to. So if that is your requirement, don't use it.
Browser consistency is also a big problem with @font-face
我认为您最好考虑选择性地使用带有 Alt 标签的图像,并依赖良好的用法和有品味的标准字体。
I think you'd be better served to consider using images with Alt tags selectively, and relying on good usage and tasteful standard fonts.