0
嗨我碰到以下代码:.height480{ min-height:484px; min-height:497px\9;}
我从来没有见过反斜杠。我已经检查了W3C文档的最小高度,并且没有提及它。任何人都知道吗?我注意到,Firefox忽略它,所以猜猜它可能只是一个错字?干杯Dewd在CSS最小高度属性中的反斜杠
嗨我碰到以下代码:.height480{ min-height:484px; min-height:497px\9;}
我从来没有见过反斜杠。我已经检查了W3C文档的最小高度,并且没有提及它。任何人都知道吗?我注意到,Firefox忽略它,所以猜猜它可能只是一个错字?干杯Dewd在CSS最小高度属性中的反斜杠
它是一个IE破解
第一min-height
工作对其他浏览器和明年min-height with slash
会为IE7,IE8,IE9和
.header {width:300px;height:200px;background:#000;} /* Applies to all browsers */
*.header {width:310px;height:200px;background:#000;} /* Applies to all IE browsers */
_.header {width:290px;height:200px;background:#000;} /* Applies to all IE browsers 6 and below */
.header {width /*\**/:330px\9;height:200px;background:#000;} /* Applies to IE 8 */
(Note: IE 8 and IE9 are a diffent animals, it is tying to act like web-kit. A tip of the hat to Safari and Crome.)
你能特别提醒\ 9做什么吗?它是否适用于早于IE9?如\ 8将早于IE8?还是我误解? – dewd
@BoltClock工作。感谢您将其识别为dupe。谷歌搜索css \并没有提出愚蠢的问题,当我写这个问题时,答案建议也没有提出。当时,我并没有意识到数字9的重要性.CSS中的大多数数字是任意的。 – dewd