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>

  • 相关阅读:
    Dllimport函数時无法在Dll中找到的入口点
    cb35a_c++_STL_算法_for_each
    cb34a_c++_STL_算法_查找算法_(7)_lower_bound
    cb33a_c++_STL_算法_查找算法_(6)binary_search_includes
    cb32a_c++_STL_算法_查找算法_(5)adjacent_find
    cb31a_c++_STL_算法_查找算法_(4)find_first_of
    cb30a_c++_STL_算法_查找算法_(3)search_find_end
    cb29a_c++_STL_算法_查找算法_(2)search_n
    cb28a_c++_STL_算法_查找算法_(1)find_find_if
    cb27a_c++_STL_算法_最小值和最大值
  • 原文地址:https://www.cnblogs.com/amylis_chen/p/1941137.html
Copyright © 2011-2022 走看看