简体   繁体   English

是否有可能为Internet Explorer用户启用CSS3功能?

[英]Is there a possibility to enable CSS3 features for internet explorer users?

I'm using CSS 3 features like "rounded corner" or "shadow box". 我正在使用CSS 3功能,如“圆角”或“阴影框”。 IMHO These are fantastic features for people like me with no graphics knowledge. 恕我直言这些是像我这样没有图形知识的人的奇妙功能。 But, i've noticed, IE 7-8 not support CSS 3. 但是,我注意到,IE 7-8不支持CSS 3。

So i'm asking you: is there a way to "enable" some features maybe with some javascript functions to include in my html file ? 所以我问你:有没有办法“启用”一些功能,可能有一些javascript函数包含在我的html文件中? Thank you! 谢谢!

ie7-js fixes certain CSS issues. ie7-js修复了某些CSS问题。 I don't think the ones you named are included, but they might be in the future. 我不认为你提到的那些被包括在内,但它们可能在未来。

Take a look at HTML5 enabling script , jQuery dropshadows and corners . 看看HTML5启用脚本 ,jQuery的阴影角落

Also, you might want to read a good article on making dropshadows, curvy corners & gradients using jQuery. 另外,你可能想阅读一篇关于使用jQuery制作drophadows,曲角和渐变的好文章

You cannot enable them, but you can detect them and mimic them using a good shot of JavaScript. 你不能启用它们,但你可以检测它们并使用很好的JavaScript来模仿它们。 Modernizr can be used to detect HTML5 and CSS3 features so that you can control the behaviour better. Modernizr可用于检测HTML5和CSS3功能,以便您可以更好地控制行为。 You can also use jQuery Corner and jQuery Text-Shadow plugins to progressively enhance the browsers not supporting them. 您还可以使用jQuery CornerjQuery Text-Shadow插件逐步增强不支持它们的浏览器。

Note that HTML5 and CSS3 are not coupled to each other. 请注意,HTML5和CSS3 没有相互耦合。

最简单的可能是Chrome Frame ,但您必须说服您的用户安装它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM