Conditional Comments Firefox

大城市里の小女人 提交于 2019-12-29 08:45:24

问题


Are there specific Conditional Comments available for older versions of Firefox? (eg 3.0)


回答1:


No, they are only supported by IE.

There are CSS hacks though. See: http://perishablepress.com/press/2009/06/28/css-hacks-for-different-versions-of-firefox/




回答2:


Not to my knowledge. As far as I know, conditional comments are an Internet Explorer-only feature.

QuirksMode.org agrees.




回答3:


I am trying to create a solid fallback for @font-face by initiating Cufón for older browsers. Conditional comments came to mind but perhaps there is another route?

You just have to inject the cufón script tags conditionally.




回答4:


Received an email from Faruk Ates the developer of [Modernizr][1]

[1]: http://www.modernizr.com/ confirming that it will do the trick.... and more:-)



来源:https://stackoverflow.com/questions/3041870/conditional-comments-firefox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!