哪些css hack为IE 6和7是未来的证明? [英] Which css hacks for IE 6 and 7 are future proof?

查看:129
本文介绍了哪些css hack为IE 6和7是未来的证明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪些css hack为IE 6和7是未来的证明?我的意思是如果我使用那么他们永远不会创建任何问题,他们的补丁永远不会实现?

Which css hacks for IE 6 and 7 are future proof? i mean if i use then then they would never create any problem and their patch will never be implemented?

管理2 css一个为所有和一个为IE是耗时,它还添加了一个额外的样式表。如果任何黑客可以解决主css中的问题,那么它是一个时间,当多个人在同一个项目,然后大多数时间,我们忘了改变条件css也。

manage 2 css one for all and one for IE is time consuming and it adds one extra style sheet also. and if any hack can solve problem within main css then it's a timesaver and when multiple people work on same project then most of time we forgot to make change in conditional css too.

我不是问条件样式表

推荐答案



使用 IE条件注释插入您的每个版本(不是双关的...也许有点)样式..

none.
Use IE conditional comments to insert your per-version (no pun intended .. well maybe a little) styles..



[ 更新 ]

您更改的问题的其他说明。
这可能是费时的,但它是最好的做法(许多黑客是无效的css )。

即使对于浏览器的同一主要版本,也可以保证使用黑客可以永远不会。在未来的小版本中,他们不太可能修复IE6中的css 错误但仍然不能100%确定。

Using hacks can never be guaranteed, even for the same major versions of a browser .. It is unlikely that they will fix a css bug in IE6 in future minor releases, but still you can not be 100% certain..

有一个替代方案(或许起初更耗时)但它是真正的最佳实践...

There is an alternative (perhaps more time consuming at first), the IE comments i mentioned, but it is truly the best practice...

此外,考虑你团队中的其他编程人员,他们都必须知道,理解和记住在未来相同黑客。随着时间的推移,维护黑客比在其他文件中维护不同版本的违规规则变得更加耗时。

Besides, think about the other coders in your team who all must know, understand and remember in the future the same hacks.. Over time it will become more time consuming to maintain the hacks than to maintain distinct versions of the offending rules in other files..

这篇关于哪些css hack为IE 6和7是未来的证明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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