weixin_33675507 2016-02-01 20:47 采纳率: 0%
浏览 18

把手桌ie8

I has a problem with my Handlebars table in IE8, some rows create a blank cell more and destroy de table template. I used ajax and json for to fill the data.

enter image description here

May you help me ? Thanks in advance.

Blockquote

 var template = Handlebars.compile(templateOficinas);
 $("[data-result]").css("display","block");
 $("#bodyTableOficina").html(template(result));

Blockquote

  <tbody id="bodyTableOficina">
   <script id="template-oficinas" type="text/x-handlebars-template">
      {{#each oficinas}}
      <tr>
      <td>{{nomeFantasia}} 
      <span><i id="iconCategoria" data-toggle="tooltip" data-placement="right"></i></span>
      <span class="status" id="status" data-toggle="tooltip" data-placement="right"></span>
      </td>
      <td>{{numCpfCgc}}</td>
      <td>{{bandeira}}</td>
      <td>{{tipo}}</td>
      <td>{{endereco}}, {{numeroEndereco}}</td>
      <td>{{#if complemento}}{{complemento}}{{else}}<p>-</p>{{/if}}</td>
      <td>{{cep}}</td>
      <td>{{#if bairro}}{{bairro}}{{else}}<p>-</p>{{/if}}</td>
      <td>{{cidade}}</td>
      <td>{{estadoUf}}</td>
      <td>{{#if ddd}}({{ddd}}){{/if}}{{telefone1}}{{#if                  telefone2}}/{{telefone2}}{{/if}}</td>
      </tr>
      {{else}}
      <tr class="tabela-fundo">
      <td colspan="12">Nenhum resultado encontrado</td>
      </tr>
      {{/each}}

   </script>
</tbody>
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
    • ¥15 gdf格式的脑电数据如何处理matlab
    • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
    • ¥100 监控抖音用户作品更新可以微信公众号提醒
    • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
    • ¥70 2048小游戏毕设项目
    • ¥20 mysql架构,按照姓名分表
    • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分
    • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
    • ¥15 linux驱动,linux应用,多线程