SIFR 跨浏览器运行良好吗?
我现在已经看到一些使用 SIFR 的网站,我可以看到其中的好处。我(很快)研究了其他类似的插件,但 SIFR 似乎相当不错。那么它在跨浏览器兼容性方面好吗?
I have seen a few sites now that use SIFR, and I can see the benefits. I have (quickly) looked into other plugins similar, but SIFR seems to be quite good. So it good in terms of cross-browser compatibility?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
2008 年,我所在的团队在 Web 应用程序设计中使用了 SIFR,这样我们就可以获得标题的自定义字体。
大多数情况下它工作正常,但我们经常遇到 SIFR 文本不自然换行的问题。
这是
一个标题
会看
就像这样
每当这种情况发生时,我们就必须让我们的设计师查看并修复它,通常是通过对 CSS 进行一些修改。
我不喜欢 SIFR 的另一件事是内容在替换时闪烁或闪烁的方式。这确实很难避免。
总而言之,我们花费了比我们想象的更多的时间来解决 SIFR 问题,但归根结底,我认为这是不值得的。
如今,我可能会考虑仅使用 CSS 的解决方案,例如 TypeKit 或 Kernest。
I was part of a team that used SIFR in the design of a web application in 2008 so we could get a custom font for headlines.
It works OK most of the time but we frequently ran into problems where the SIFR text would be unnaturally wrapped.
That is
A Headline
Would Look
like This
Whenever this happened, we'd have to have our designer look at it and fix it, usually through some fiddling with the CSS.
The other thing I don't like about SIFR is the way the content flashes or blinks as it's replaced. This is really hard to avoid.
All in all, we spent a lot more time fixing SIFR issues that we thought we would, and in the final analysis I don't think it was worth it.
These days, I might look at a CSS-only solution like TypeKit or Kernest.
它基本上可以在启用 Flash 的所有设备上运行。
在禁用 Flash 或未安装插件的浏览器上,可以使用基本 CSS 样式的回退。
It basically runs on everything that has Flash enabled.
On browsers that have flash disabled or no plugin installed a fall back with basic CSS styling can be used.
我在许多网站、CMS 和 Web 应用程序中使用 SIFR。
SIFR 的后备行为非常好,因此您无需太担心兼容性问题。它适用于所有主要的支持 Flash 的浏览器。由于替换了“原生”HTML 标签,它也非常适合 SEO。
设置 sIFR 很棘手,请为一些初始调试、更改相对路径等做好准备。我每次都会忘记如何设置它,这不是很直观。但当它起作用时,它就可以正常工作。在较旧的机器上,您会注意到 SIFR 需要瞬间进行实际更换。它可能很引人注目,但并不好。在现代、快速的机器上,只要替换一些标题等,您就不会注意到任何事情。 Sifr 不适合替换整个文本段落。
我一直想看看的一个替代方案是 Cufon< /a>.虽然这里很多人都喜欢它,但我自己不能说太多。在您致力于解决方案之前,这绝对值得一看。
I use SIFR in a number of sites, CMSs and web apps.
SIFR's fallback behaviour is quite good, so you don't need to worry much about compatibility. It works fine with all major flash-enabled browsers. Due to the replacement of "native" HTML tags it's perfect for SEO, too.
Setting sIFR up is tricky, be prepared for some initial debugging, changing relative paths, and so on. I tend to forget how to set it up every time, it's not very intuitive. But when it works, it works all right. On older machines, you will notice the split second SIFR needs to do the actual replacement. It can be notable and is not nice. On modern, fast machines you will notice nothing, as long as you just replace a few headlines and such. Sifr is not suitable for replacing entire paragraphs of text.
An alternative I have been meaning to check out some time is Cufon. While many people here like it, I can't say much about it myself. It's definitely also worth a look before you commit yourself to a solution.