• 通用table样式


    <html>
    <head>
        <title>通用table样式</title>
        <style type="text/css">
            body, table
            {
                font-size: 12px;
            }
            table
            {
                table-layout: fixed;
                empty-cells: show;
                border-collapse: collapse;
                margin: 0 auto;
            }
            td
            {
                height: 30px;
            }
            h1, h2, h3
            {
                font-size: 12px;
                margin: 0;
                padding: 0;
            }
            .table
            {
                border: 1px solid #cad9ea;
                color: #666;
            }
            .table th
            {
                background-repeat: repeat-x;
                height: 30px;
            }
            .table td, .table th
            {
                border: 1px solid #cad9ea;
                padding: 0 1em 0;
            }
            .table tr.alter
            {
                background-color: #f5fafe;
            }
        </style>
    </head>
    <body>
        <table width="90%" class="table">
            <tr>
                <th>学号</th>
                <th>姓名</th>
                <th>平时</th>
                <th>期中</th>
                <th>实验(践)</th>
                <th>其它</th>
                <th>期末</th>
                <th>总评</th>
            </tr>
            <tr>
                <td>1</td>
                <td>1</td>
                <td>1</td>
                <td>1</td>
                <td>1</td>
                <td>1</td>
                <td>1</td>
                <td>1</td>
            </tr>
            <tr class="alter">
                <td>2</td>
                <td>2</td>
                <td>2</td>
                <td>2</td>
                <td>2</td>
                <td>2</td>
                <td>2</td>
                <td>2</td>
            </tr>
            <tr>
                <td>3</td>
                <td>3</td>
                <td>3</td>
                <td>3</td>
                <td>3</td>
                <td>3</td>
                <td>3</td>
                <td>3</td>
            </tr>
            <tr class="alter">
                <td>4</td>
                <td>4</td>
                <td>4</td>
                <td>4</td>
                <td>4</td>
                <td>4</td>
                <td>4</td>
                <td>4</td>
            </tr>
        </table>
    </body>
    </html>
  • 相关阅读:
    凯撒密文的破解编程实现
    微软ping命令的源代码
    从编程到入侵
    永远的后门
    永远的后门
    奇妙的Base64编码
    用端口截听实现隐藏嗅探与攻击(二)
    奇妙的Base64编码
    Liferea 1.1.2
    Equinox Desktop Environment 1.1
  • 原文地址:https://www.cnblogs.com/Jackie-sky/p/3949080.html
Copyright © 2020-2023  润新知