旧浏览器中 css3 的 javascript 库
你能给我链接一些 javascript 库吗,它们可以在所有浏览器上为我提供全面支持 html5 和 css3?
该库必须在不更改任何 css 文件的情况下获得该支持。(例如,我在页面上制作了一些渐变和阴影,并且我不想重写它们以得到该库的完全支持)
Can you link me some javascript libraries, that can give me full support html5 and css3 on all browsers?
That library must get that support without any css file changing.(e.g. i made some gradients and shadows on page, and i dont want to rewrite them to be fully supported by that library)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你想要的是CSS3PIE。您确实需要进行一些最小的更改,但这绝对是最好的方法。
对于边框半径和盒子阴影,您只需要添加一行添加行为,对于渐变,则需要多一点。
您可能会发现需要添加position:relative;到元素以显示渐变或阴影。
What you want is CSS3PIE. You do need to make some minimal changes, but it's definitely the best way to go.
For border-radius and box-shadow you just need to add a line adding a behaviour, for gradients it's a little more.
You might find that you need to add position:relative; to elements to get the grad or shadow to show up.
您可能不需要一切。此列表将帮助您选择真正需要的功能:http:// github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills
更新:旧版 Internet Explorer 中的渐变和阴影可以轻松处理CSS3 PIE 库。
You probably don't need everything. This list will help you pick the features you realy do need: http://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills
Update: Gradients and shadows in older Internet Explorers are easily handled by CSS3 PIE library.