首页前端开发HTMLHTML5制作表格样式

HTML5制作表格样式

时间2024-01-24 18:53:20发布访客分类HTML浏览943
导读:收集整理的这篇文章主要介绍了HTML5制作表格样式,觉得挺不错的,现在分享给大家,也给大家做个参考。 废话不多说了,具体代码如下所示:<!DOCTYPE htML><html><head>...
收集整理的这篇文章主要介绍了HTML5制作表格样式,觉得挺不错的,现在分享给大家,也给大家做个参考。

废话不多说了,具体代码如下所示:

!DOCTYPE htML>
    html>
    head>
        meta charset="utf-8">
        tITle>
    表格/title>
        style type="text/css">
        *{
                margin: 0;
                padding: 0;
        }
        body{
                font: italic 20px Georgia, serif;
                letter-spacing: normal;
                background-color: #f0f0f0;
        }
        #content{
                width: 750px;
                padding: 40px;
                margin: 0 auto;
                background-color: #fff;
                border-left: 30px solid #1D81B6;
                border-right: 1px solid #ddd;
                box-shadow: 0px 0px 16px #aaa;
        }
        #table1{
                font: bold 16px/1.4em "Trebuchet MS", sans-serif;
        }
        #table1 thead th{
                padding: 15px;
                border: 1px solid #93CE37;
                border-bottom: 3px solid #9ED929;
                text-shadow: 1px 1px 1px #568f23;
                color: #fff;
                background-color: #9DD929;
                border-radius: 5px 5px 0px 0px;
        }
        #table1 thead th:empty{
                background-color: transparent;
                border: none;
        }
        #table1 tbody th{
                padding: 0px 10px;
                border: 1px solid #93CE37;
                border-right: 3px solid #9ED929;
                text-shadow: 1px 1px 1px #568F23;
                color: #666;
                background-color: #9DD929;
                border-radius: 5px 0px 0px 5px;
        }
        #table1 tbody td{
                padding: 10px;
                border: 2px solid #E7EFE0;
                text-align: center;
                text-shadow: 1px 1px 1px #fff;
                color: #666;
                background-color: #DEF3CA;
                border-radius: 2px;
        }
        #table1 tbody span.check::before{
                content: url(images/check0.png);
        }
        #table1 tfoot td{
                padding: 10px 0px;
                font-Size: 32px;
                color: #9CD009;
                text-align: center;
                text-shadow: 1px 1px 1px #444;
        }
        /style>
    /head>
    body>
    div id="content">
        table id="table1">
            thead>
                tr>
                    th>
    /th>
                    th scope="col" abbr="Starter">
    Smart Starter/th>
                    th scope="col" abbr="Medium">
    Smart Medium/th>
                    th scope="col" abbr="Business">
    Smart Business/th>
                    th scope="col" abbr="Deluxe">
    Smart Deluxe/th>
                /tr>
            /thead>
            tfoot>
                tr>
                    th scope="row">
    PRice per month/th>
                    td>
    $ 2.90/td>
                    td>
    $ 5.90/td>
                    td>
    $ 9.90/td>
                    td>
    $ 14.90/td>
                /tr>
            /tfoot>
            tbody>
                tr>
                    th scope="row">
    Storage Space/th>
                    td>
    512MB/td>
                    td>
    1 GB/td>
                    td>
    2 GB/td>
                    td>
    4 GB/td>
                /tr>
                tr>
                    th scope="row">
    Bandwidth/th>
                    td>
    50 GB/td>
                    td>
    100 GB/td>
                    td>
    150 GB/td>
                    td>
    unlimited/td>
                /tr>
                tr>
                    th scope="row">
    MySQL Databases/th>
                    td>
    unlimited/td>
                    td>
    unlimited/td>
                    td>
    unlimited/td>
                    td>
    unlimited/td>
                /tr>
                tr>
                    th scope="row">
    SETUP/th>
                    td>
    12.90 ___fcKpd___0lt;
    /td>
                    td>
    12.90 ___FCKpd___0lt;
    /td>
                    td>
    free/td>
                    td>
    free/td>
                /tr>
                tr>
                    th scope="row">
    PHP 5/th>
                    td>
    span class="check">
    /span>
    /td>
                    td>
    span class="check">
    /span>
    /td>
                    td>
    span class="check">
    /span>
    /td>
                    td>
    span class="check">
    /span>
    /td>
                /tr>
                tr>
                    th scope="row">
    Ruby on Rails/th>
                    td>
    span class="check">
    /span>
    /td>
                    td>
    span class="check">
    /span>
    /td>
                    td>
    span class="check">
    /span>
    /td>
                    td>
    span class="check">
    /span>
    /td>
                /tr>
            /tbody>
        /table>
    /div>
    /body>
    /html>
    

好了,代码到此介绍,完美表格效果就制作出来了。

声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!

html5

若转载请注明出处: HTML5制作表格样式
本文地址: https://pptw.com/jishu/585619.html
详解HTML5中的拖放事件(Drag 和 drop) HTML5拖放效果的实现代码

游客 回复需填写必要信息