How do I put a html tag conditional in jade?

后端 未结 7 719
逝去的感伤
逝去的感伤 2021-02-01 17:27

In jade, I want to put in a html tag conditional as per this method, which puts in




        
相关标签:
7条回答
  • 2021-02-01 17:57

    Simply use this syntax, mind the different indentation:

    !!! 5
    | <!--[if lt IE 7]> <html class="ie6 oldie" lang="en"> <![endif]-->
    | <!--[if IE 7]>    <html class="ie7 oldie" lang="en"> <![endif]-->
    | <!--[if IE 8]>    <html class="ie8 oldie" lang="en"> <![endif]-->
    | <!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]-->
    head
      …
    
    0 讨论(0)
提交回复
热议问题