zoukankan      html  css  js  c++  java
  • 表格样式

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
        <title>Table Style</title>
        <style type="text/css">
            .myTable
            {
                700px;
                margin: 0 auto;
                border-collapse: collapse;
                font-family: Arial, Helvetica, sans-serif;
                text-align: center;
            }
            .myTable th, .myTable td
            {
                border: 1px solid #000;
            }
            .myTable th
            {
                background-color: #f2f4b9;
            }
            .mynoTable
            {
                700px;
                margin: 0 auto;
                border-collapse: collapse;
                font-family: Arial, Helvetica, sans-serif;
                text-align: center;
            }
            .mynoTable th, .mynoTable td
            {
                border: 0px solid #000;
            }
            .mynoTable th
            {
                background-color: #f2f4b9;
            }
        </style>
    </head>
    <body>
        <h1>
            Table Style</h1>
        <hr />
        <table id="browser" class="myTable">
            <tbody id="html">
                <tr>
                    <th colspan="5" class="title">
                        HTML 4.01
                    </th>
                </tr>
                <tr>
                    <th>
                        a
                    </th>
                    <td style="border-right: none 0 #ffffff">
                        81%
                    </td>
                    <td style="border-left: none 0 #ffffff">
                        85%
                    </td>
                    <td>
                        85%
                    </td>
                    <td>
                        94%
                    </td>
                </tr>
                <tr>
                    <th>
                        abbr
                    </th>
                    <td>
                        N
                    </td>
                    <td>
                        97%
                    </td>
                    <td>
                        85%
                    </td>
                    <td>
                        94%
                    </td>
                </tr>
                <tr>
                    <th>
                        acronym
                    </th>
                    <td>
                        94%
                    </td>
                    <td>
                        97%
                    </td>
                    <td>
                        97%
                    </td>
                    <td>
                        75%
                    </td>
                </tr>
                <tr>
                    <th>
                        aaaaaaa
                    </th>
                    <td colspan="4" style="padding: 0 0 0 0">
                        <table id="Table1" class="myTable">
                            <tbody id="Tbody1">
                                <tr>
                                    <th colspan="5" class="title" style="border-top: none 0 #ffffff; border-left: none 0 #ffffff;
                                        border-right: none 0 #ffffff">
                                        HTML 4.01
                                    </th>
                                </tr>
                                <tr>
                                    <th style="border-left: none 0 #ffffff">
                                        a
                                    </th>
                                    <td style="border-right: none 0 #ffffff">
                                        81%
                                    </td>
                                    <td style="border-left: none 0 #ffffff">
                                        85%
                                    </td>
                                    <td>
                                        85%
                                    </td>
                                    <td style="border-right: none 0 #ffffff">
                                        94%
                                    </td>
                                </tr>
                                <tr>
                                    <th style="border-left: none 0 #ffffff">
                                        abbr
                                    </th>
                                    <td>
                                        N
                                    </td>
                                    <td>
                                        97%
                                    </td>
                                    <td>
                                        85%
                                    </td>
                                    <td style="border-right: none 0 #ffffff">
                                        94%
                                    </td>
                                </tr>
                                <tr>
                                    <th style="border-bottom: none 0 #ffffff; border-left: none 0 #ffffff">
                                        acronym
                                    </th>
                                    <td style="border-bottom: none 0 #ffffff">
                                        94%
                                    </td>
                                    <td style="border-bottom: none 0 #ffffff">
                                        97%
                                    </td>
                                    <td style="border-bottom: none 0 #ffffff">
                                        97%
                                    </td>
                                    <td style="border-bottom: none 0 #ffffff; border-right: none 0 #ffffff">
                                        75%
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <th colspan="5">
                        aaa
                    </th>
                </tr>
                <tr>
                    <th>
                        aaaaaaa
                    </th>
                    <td colspan="4" style="padding: 0 0 0 0">
                        <table id="Table2" class="mynoTable">
                            <tbody id="Tbody2">
                                <tr>
                                    <th colspan="5" class="title" style="border-top: none 0 #ffffff; border-left: none 0 #ffffff;
                                        border-right: none 0 #ffffff">
                                        HTML 4.01
                                    </th>
                                </tr>
                                <tr>
                                    <th style="border-left: none 0 #ffffff">
                                        a
                                    </th>
                                    <td style="border-right: none 0 #ffffff">
                                        81%
                                    </td>
                                    <td style="border-left: none 0 #ffffff">
                                        85%
                                    </td>
                                    <td>
                                        85%
                                    </td>
                                    <td style="border-right: none 0 #ffffff">
                                        94%
                                    </td>
                                </tr>
                                <tr>
                                    <th style="border-left: none 0 #ffffff">
                                        abbr
                                    </th>
                                    <td>
                                        N
                                    </td>
                                    <td>
                                        97%
                                    </td>
                                    <td>
                                        85%
                                    </td>
                                    <td style="border-right: none 0 #ffffff">
                                        94%
                                    </td>
                                </tr>
                                <tr>
                                    <th style="border-bottom: none 0 #ffffff; border-left: none 0 #ffffff">
                                        acronym
                                    </th>
                                    <td style="border-bottom: none 0 #ffffff">
                                        94%
                                    </td>
                                    <td style="border-bottom: none 0 #ffffff">
                                        97%
                                    </td>
                                    <td style="border-bottom: none 0 #ffffff">
                                        97%
                                    </td>
                                    <td style="border-bottom: none 0 #ffffff; border-right: none 0 #ffffff">
                                        75%
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
    </body>
    </html>

  • 相关阅读:
    Auto X2021 K Increasing Sequence
    拉普拉斯平滑处理 Laplace Smoothing
    博学之
    Python-生成音乐-pyshnth
    Python-Kivy ImportError: DLL load failed: 找不到指定的模块
    Python-Word模板填充-docxtpl
    Python-文字转语音-pyttsx3
    Virtual Box中Ubuntu使用"桥接网卡"不能联网而使用"网络地址转换(NAT)"却可以上网
    STM32的HAL库中的DMA_FLAG_TCIF3_7等几个宏定义的含义
    Linux下编写互相通信的驱动模块并将其加入到内核中
  • 原文地址:https://www.cnblogs.com/amylis_chen/p/1941137.html
Copyright © 2011-2022 走看看