Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/77.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何在翡翠模板中介绍IE黑客(帕格,现在,真的是帕格?)_Html_Node.js_Pug - Fatal编程技术网

Html 如何在翡翠模板中介绍IE黑客(帕格,现在,真的是帕格?)

Html 如何在翡翠模板中介绍IE黑客(帕格,现在,真的是帕格?),html,node.js,pug,Html,Node.js,Pug,我有这两段html,我想知道制作它们所需的jade: <body> <!--[if (gte mso 9)|(IE)]> <table width="540" align="center" cellpadding="0" cellspacing="0" border="0"> <tr> <td> <![endif]--> <table class="content" align="ce

我有这两段html,我想知道制作它们所需的jade:

<body>
  <!--[if (gte mso 9)|(IE)]>
  <table width="540" align="center" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td>
  <![endif]-->

  <table class="content" align="center" cellpadding="0" cellspacing="0" border="0" style="font-family: sans-serif; width: 100%; max-width: 540px; background: #ffffff;">
    <tr>
    <td>



似乎不能很好地转换、预测或使用:逐字逐句。有什么想法吗?

转换器可以帮你

html2jade.org是您在这一特定问题上的资源

以下是您的代码输出:

html
  body
    //if (gte mso 9)|(IE)
      table(width='540', align='center', cellpadding='0', cellspacing='0', border='0')
        tr
          td
    table.content(align='center', cellpadding='0', cellspacing='0', border='0', style='font-family: sans-serif; width: 100%; max-width: 540px; background: #ffffff;')
      tr
        td


转换器可以帮助您实现这一点

html2jade.org是您在这一特定问题上的资源

以下是您的代码输出:

html
  body
    //if (gte mso 9)|(IE)
      table(width='540', align='center', cellpadding='0', cellspacing='0', border='0')
        tr
          td
    table.content(align='center', cellpadding='0', cellspacing='0', border='0', style='font-family: sans-serif; width: 100%; max-width: 540px; background: #ffffff;')
      tr
        td

此解决方案:
!=“”

编译到:

!=""
此解决方案:
!=“”

编译到:

!=""

由于IE10不再支持条件评论,因此确实不需要检查大于IE9的版本。由于IE10不再支持条件评论,因此确实不需要检查大于IE9的版本。我使用了该网站。问题是,如果你尝试转换回来,你会得到一个不同于原来的html。我用过那个网站。问题是,如果您尝试转换回,您会得到与原始html不同的html。
          //if (gte mso 9)|(IE)
!= "<!--[if IE]>"
your code here
!= "\n"
!= "<![endif]-->"