在Jade中,如何插入多條條件註釋,如下所示?如何使用Jade插入多個條件註釋?
<!-- Foundation 3 for IE 8 and earlier -->
<!--[if lt IE 9]>
<link rel="stylesheet" href="/css/foundation3/normalize.css">
<link rel="stylesheet" href="/css/foundation3/foundation.css">
<link rel="stylesheet" href="/css/foundation3/app.css">
<![endif]-->
<!-- Foundation 4 for IE 9 and earlier -->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="/css/foundation4/normalize.css">
<link rel="stylesheet" href="/css/foundation4/foundation.css">
<!--<![endif]-->
到目前爲止,我嘗試以下,但它並沒有創造額外的<!-->
和<!--<![endif]-->
。
//if lt IE 9
link(rel="stylesheet",href="/css/foundation3/normalize.css")
link(rel="stylesheet",href="/css/foundation3/foundation.css")
link(rel="stylesheet",href="/css/foundation3/app.css")
//if gt IE 8
link(rel="stylesheet",href="/css/foundation4/normalize.css")
link(rel="stylesheet",href="/css/foundation4/foundation.css")
這將簡單地包裝每個條件註釋塊<!--[if le IE X]> ... <![endif]>
。我知道我可以做this,但還有什麼更好的嗎?
實際上IE8是否需要額外的''?你測試過了嗎? –
你有沒有想過這個想法? – JGallardo