應該這樣工作嗎?IE條件註釋在內嵌工作嗎?
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="/minify/css?f=ie8.css<!--[if lte IE 7]>,ie7.css<![endif]--><!--[if lte IE 6]>,ie6.css<![endif]-->" />
<![endif]-->
顯然嵌套註釋不起作用,那麼這是什麼?
<link rel="stylesheet" type="text/css" href="/minify/css?f=someotherfile.css<!--[if IE]>,ie8.css<![endif]--><!--[if lte IE 7]>,ie7.css<![endif]--><!--[if lte IE 6]>,ie6.css<![endif]-->" />
它不起作用的原因是'/ * begin-comment/*破壞! */end-comment * /'不起作用。嵌套不嵌套的東西會打破他們的想法。 – 2009-12-30 00:23:17