I see that colors in CSS properties values are commonly written in the uppercase form:
(我看到CSS属性值中的颜色通常以大写形式书写:)
.foo .bar {
background-color: #A41B35;
color: #FFF;
}
But you can also use:
(但您也可以使用:)
/* Same same */
.foo .bar {
background-color: #a41b35;
color: #fff;
}
It looks like using lowercase values does the same, and, CSS values for colors are not case-sensitive .
(看起来使用小写的值也是如此,并且颜色的CSS值不区分大小写 。)
Lots of graphic design software also use the uppercase form. (许多图形设计软件也使用大写形式。)
And it is very common to find uppercase notations in source code, it looks like there is something like a tradition. (在源代码中找到大写表示法是很常见的,看起来就像是一种传统。)
I understand about the consistency thing, that it should be the same everywhere in you software, but as the standard doesn't give a good indication, people do what they want or what they are told to do .
(我了解一致性问题,因为它在您的软件中各处都应该相同,但是由于标准不能提供很好的指示,因此人们会按照自己的意愿做事或被告知要做的事情 。)
Is there rational reasons for this, like historic , compatibility, old IE6 hacks, performances or practical reasons?
(是否有合理的原因,例如历史性 ,兼容性,旧的IE6黑客行为,性能或实际原因?)
ask by smonff translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…