选项来解决浏览器兼容性问题? [英] options to solve browser compatibility issues?

查看:189
本文介绍了选项来解决浏览器兼容性问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用css3设计一个web应用程序。每个人都知道很多css3属性,如渐变,边框半径,框阴影,动画,边框图像,背景rgb,最后一个孩子,第三个孩子等将不工作在早期的IE版本,如IE8, 7,6。某些Java脚本库(如 css3派)可用于使Internet Explorer 6-9能够呈现几个最常见的有用的CSS3装饰功能,如渐变,边框半径,边框阴影,边框图像(不是最后的孩子,第n个孩子的属性),但我的一些朋友面临的问题,告诉我,这是不可靠的。

I am designing a web application with css3. Every one knows that lot of css3 properties like gradients, border-radius, box-shadow, animate, border-image, background-rgb, last-child, nth-child etc.. will not work in earlier IE versions such as IE8,7,6. some of the java script libraries like css3 pie can be used to make Internet Explorer 6-9 capable of rendering several of the most useful CSS3 decoration features such as gradients, border-radius, border-shadow, border-image(not Last-child, nth child properties) but some of my friends facing issues with that and told me that it is not reliable.

是否有任何其他js库或polyfills将支持大多数css3装饰功能,包括子属性,而不使用指南针

Is there any other js library or polyfills which will support most of the css3 decoration features including child properties without using filter like compass?

感谢。

推荐答案

PIE css3的问题,即不是信任问题,在某些情况下,Pie框架不工作,因为它没有以下先决条件之一:

1-初始化饼图或其前缀(即对于背景)的路径不正确。

在这种情况下,您应该检查路径。最佳做法是将pie.htc放置在主页面/框架或母版页旁边。

2-您在IE中的最终结果以特殊模式呈现。

3-页面doctype未定义或不是XHTML(过渡或严格)或html5。

the problem of PIE css3 with ie is not trust issue, in some cases Pie framework does not work because it has not one of the below prerequisites:
1- the initialization path of pie or its prefixes i.e for backgrounds, is not correct.
in this case you should check the path. the best practice is to place pie.htc next to your main page/frame or master page.
2- your final result in IE is rendered in quirk mode.
3- the page doctype is not defined or is not XHTML(transitional or strict) or html5.

对于任何上述问题,它可以有一整套条件和情况的书。

但是一旦你使用它3-4次就变得自然,虽然个人我不建议使用CSS的CSS框架,因为IE在大多数情况下自然比其他浏览器慢,这些框架使它更慢。并且它通常是不利的个人我喜欢向后兼容我的网站。其中内容看起来比正确的更正确。

for any of aboveproblems it could have a full book of conditions and situations.
but once you used it 3-4 times it becomes natural, although personally i do not suggest using css3 frameworks for IE, because IE is naturally slower than other browsers in most cases and these frameworks make it even slower. and it usually it is not beneficial personally i prefer backward compatibility for my sites. where the content is seen more correctly than nice.

这篇关于选项来解决浏览器兼容性问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆