为什么要使用条件样式表? [英] Why should I use conditional stylesheets?
问题描述
问题涵盖了大部分内容,但是我正试图向一位希望完全放弃条件样式表(IE6,移动等)的高级开发人员提出明确的论据.请记住,我们实际上并没有消除IE6,只是消除了样式表.
The question covers most of it, but I'm trying to present a well articulated argument towards a senior developer who wants to abandon conditional stylesheets altogether (IE6, mobile, etc). Bear in mind we're not actually eliminating IE6, just the stylesheet.
还是我疯了,应该接受这个?
Or am I being crazy and should just accept this?
推荐答案
有什么选择?CSS骇客?
What is the alternative? CSS hacks?
我有IE7和IE6的条件样式表.这将针对那些特定浏览器的修复划分为分区.进行更改时,可以轻松地在标准浏览器中进行测试/修复,在IE7中进行测试/修复,然后在IE6中进行测试/修复.测试流程更加自然.它不违反标准,很容易,而且基本上是免费的.解释为什么您不会使用它们更有意义.
I have conditional stylesheets for IE7 and IE6. This compartmentalizes fixes for those specific browsers. When making changes, it easily lets you test/fix in standards browsers, test/fix in IE7, then test/fix in IE6. Testing flows more naturally. It doesn't break standards, it's easy, and it's basically free. It makes more sense to explain why you wouldn't use them.
这篇关于为什么要使用条件样式表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!