zoukankan      html  css  js  c++  java
  • 【caption,thead,tfoot,tbody的使用以及使用nowrap禁止换行】

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
            "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
        <title>为表格添加标题</title>
        <style type="text/css">
            thead{
                background-color: red;
                color: white;
            }
            tfoot{
                background-color: green;
            }
        </style>
    </head>
    <body>
    <table border="1" width="400px" align="center">
        <caption>这是表格的标题</caption>
        <thead>
        <tr>
            <th nowrap>行头一行头一行头一行头一行头一行头一行头一行头一行头一行头一行头一行头一行头一行头一行头一行头一行头一
                行头一行头一行头一行头一行头一行头一行头一行头一行头一行头一行头一行头一行头一</th>
            <th nowrap>行头二</th>
            <th nowrap>行头三</th>
        </tr>
        </thead>
        <tfoot>
        <tr>
            <th>行尾一</th>
            <th>行尾二</th>
            <th>行尾三</th>
        </tr>
        </tfoot>
        <tbody>
        <tr>
            <td>内容一</td>
            <td>内容二</td>
            <td>内容三</td>
        </tr>
        </tbody>
    </table>
    </body>
    </html>
     
    终身学习者
  • 相关阅读:
    CentOS7安装mysql-8
    zabbix监控规划及实施
    集群技术
    自动化脚本-配置LVS(DR模式)
    Pacemaker+ISCSI实现Apache高可用-配置
    创建集群corosync
    我的第一个python程序——猜数字
    质量报告
    新需求测试与回归测试
    冒烟测试
  • 原文地址:https://www.cnblogs.com/zuixinxian/p/4964301.html
Copyright © 2011-2022 走看看