zoukankan      html  css  js  c++  java
  • python | table 表格合并列

    <table class="static-table"><thead><tr><th>&nbsp;</th> <th>序号</th> <th>网站名称</th> <th>相关篇数</th></tr></thead> <tbody>

            {% for dict_list in wangzhantongji1  %}

                {% for key,value in dict_list.items() %}

                    {% if key == "functionname" %}

                    <tr>

                        <td width="15%" rowspan={{dict_list["counte"]|length}}>{{dict_list["functionname"]}}</td>

                    {% else %}

                    {% for data in value%}

                        {% if loop.first %}

                        <td width="11%">{{data["number"]|he}}</td>

                        <td width="11%">{{data["name"]|he}}</td>

                        <td width="11%">{{data["count"]|he}}</td>

                        </tr>

                        {% else %}

                        <tr>

                            <td width="11%">{{data["number"]|he}}</td>

                            <td width="11%">{{data["name"]|he}}</td>

                            <td width="11%">{{data["count"]|he}}</td>

                        </tr>

                        {% endif%}

                    {% endfor %}

                    {% endif %}

                {% endfor %}

            {% endfor %}

            </tbody>

    </table>

     

  • 相关阅读:
    说说移动端web开发中的点击穿透问题
    将博客搬至CSDN
    IIS(4)
    IIS(2)
    IIS(3)
    IIS(1)
    链表
    常用到的关键字
    进程与线程
    文件系统的原理
  • 原文地址:https://www.cnblogs.com/huangjiangyong/p/12504291.html
Copyright © 2011-2022 走看看