How do I put a html tag conditional in jade?

后端 未结 7 720
逝去的感伤
逝去的感伤 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:42

    as far as i know you can not put html tags like this in jade. for this either you need to include an html or by using trailing (.) in tags which supports text like:

    p. ....
    

    So html tag does not support text so you cant do it. the other solution is:

    -if IE==6
        html.ie6
    -if IE==7
        html.ie7
    -if IE==8
        html.ie8
    -if IE==9
        html.ie9
      head
      body
          h1 My sit
    

提交回复
热议问题