html表格合并(行,一排)

<table>
    <tr>
        <td colspan="2">失败的例子:</td>
    </tr>

    {% for ip , jieguo in reason.iteritems() %}
    <tr>
        <td colspan="2">{{ ip }}</td>
    </tr>

    {% for l, r in  jieguo.iteritems() %}
    <tr>
        <td>{{ l }}</td>
        <td>{{ r }}</td>
    </tr>
    {% end %}

    {% end %}
</table>

上面是列合并


以下是行合并

<table>
    <tr>
        <th rowspan="2"></th>
    </tr>
</table>


版权声明:本文博主原创文章。博客,未经同意不得转载。

原文地址:https://www.cnblogs.com/hrhguanli/p/4882126.html