sIFR 文本在 IE9 中垂直拉伸
我有一个使用 sIFR 的网站,并且一些替换的文本在 IE9 中垂直拉伸。它只发生在文本换行两行的地方,当我将光标悬停在它上面时它会自行修复。 sIFR 文本是一个链接,但我不确定这是否有任何相关性。
我尝试过各种设置更改,例如 fitExactly、forceClear 和forceSingleLine(尽管我希望它能够换行),但这些都不起作用。我尝试将字体大小、行高和所有其他尺寸更改为 px 而不是 em。 innerHTML
未在页面上的任何位置使用。令人沮丧的是,它在悬停后起作用,但之前不起作用。
我知道你可能在想“使用 cufon 或 @font-face,dummy”,但我现在坚持使用 sIFR。客户想要的就是客户想要的...
I've got a site that's using sIFR, and some of the replaced text is being stretched vertically in IE9. It's only happening in places where the text wraps 2 lines, and it fixes itself when I hover my cursor over it. The sIFR text is a link, but I'm not sure if that has any correlation.
I've tried various settings changes like fitExactly, forceClear, and forceSingleLine (though I want it to be able to wrap), and those didn't work. I've tried changing the font-size, line-height, and all other dimensions to px instead of em. innerHTML
isn't being used anywhere on the page. It's frustrating that it works after being hovered on, but not before.
And I know you're probably thinking "use cufon or @font-face, dummy" but I'm stuck with sIFR for now. The client wants what the client wants...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经找到解决办法了
如果你尝试用鼠标光标悬停,文本将显示正确,所以..
我写了几行代码放入 sifr-config.js
仅当检测到 IE9 时才强制 flash 重置“onReplacemment”回调,
您必须使用 Jquery 进行浏览器检测或使用其他 javascript 方式,
请参阅下面的链接:
http://www.voo-doo.net/robotphobia/2011 /05/修复-sifr-ie9
I've found a solution,
if you try to hover with mouse cursor the text will display correct so..
I write few line of code to put in sifr-config.js
forcing flash reset "onReplacemment" callback only when IE9 is detected
you must use Jquery for browser detection or use another javascript way
see the link below:
http://www.voo-doo.net/robotphobia/2011/05/fix-sifr-ie9