【问题标题】:table with td empty first before values. Why?在值之前先有 td 为空的表。为什么?
【发布时间】:2020-09-01 22:05:28
【问题描述】:

我的 td 表在值之前先为空。为什么? 我的html是:

<div class="observations">
    <div class="sessao_conteudo">
            <table class="obs-tabela">
                <caption class="obs-caption"><strong>Observations</strong></caption>
                <td class="obs-tab-thead">
                    {{props obs}} {{if key
                    <=0 }} {{props prop}} <br>{{>key}}:               
                    {{/props}} {{/if}} {{/props}}
                </td>
                <td>
                    {{for obs}} 
                    <td class="obs-tab-td">
                        {{props}}
                        <br>
                            {{>prop}} 
                        {{/props}}
                    </td>
                    {{/for}}
                </td>
            </table>
         </div>

</div>

如果运行表:

enter image description here

【问题讨论】:

    标签: javascript html jsrender jsreport


    【解决方案1】:

    我的 CSS :

    .observations{
        float: left;
        display: flex;
        width: 45%;
        padding: 10px 1% 0px 4px;
    }
    .obs-caption {
        display: table-caption;
        text-align: center;
        background-color: #DCDCDC;
    }
    .obs-tabela{
        font-size: 16px;
        border: 1;
    }
    .obs-tab-thead{
        text-align: left;
        width: 109px;
        border: 1px solid black;
    }
    .obs-tab-td{
        text-align: left;
        border: 1px solid black;
    }

    【讨论】:

      猜你喜欢
      • 2018-04-10
      • 2013-09-21
      • 1970-01-01
      • 2013-07-24
      • 1970-01-01
      • 2012-10-06
      • 2011-06-20
      • 1970-01-01
      • 2019-12-21
      相关资源
      最近更新 更多