亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

搜索
博主信息
博文 9
粉絲 1
評論 0
訪問量 10922
最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板
table表格制作
jiangxiaobai
原創(chuàng)
2198人瀏覽過

table的制作,設置圓角的話查了下貌似說用css3比較容易做出來,看了網(wǎng)上代碼還是不太理解,屬性太多。得慢慢消化實戰(zhàn)才能記得住

實例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="static/style.css">
    <title>表格</title>
</head>
<body>
<table>
    <caption>產(chǎn)品價格表</caption>
    <thead>
    <tr>
    <th>型號</th>
    <th>硬盤</th>
    <th>內(nèi)存</th>
    <th>cpu</th>
    <th>尺寸</th>
    <th>顏色</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td rowspan="2">mac book pro</td>
        <td>128g</td>
        <td>4g</td>
        <td>i3</td>
        <td>13.3</td>
        <td>銀</td>
    </tr>

    <tr>

        <td>256</td>
        <td>8g</td>
        <td>i5</td>
        <td>13.3</td>
        <td>灰</td>
    </tr>
    <tr>
        <td rowspan="2">mac book air</td>
        <td>256</td>
        <td>8g</td>
        <td>i5</td>
        <td>13.3</td>
        <td>灰</td>
    </tr>
    <tr>

        <td>256</td>
        <td>8g</td>
        <td>i5</td>
        <td>13.3</td>
        <td>灰</td>
    </tr>

    </tbody>
    <tfoot>
    <tr>
        <td>備注:</td>
        <td colspan="5">顏色以當天發(fā)貨為準</td>
    </tr>
    </tfoot>
</table>
</body>
</html>

運行實例 ?

點擊 "運行實例" 按鈕查看在線實例

實例

table{
    border: 1px solid #444444;
    width: 600px;
    margin: 40px auto;

    box-shadow: 2px 2px 2px #888888;
    position: relative;

}
table caption{
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 5px;
}
th, td {
    border: 1px solid #444444;
    text-align: center;
    padding: 10px;
}
table thead tr th{
    background-color: #cccccc;
}

table tbody > tr:first-of-type > td:first-of-type {
    background-color: lightcoral;

}
table tbody > tr:nth-last-of-type(2) > td:first-of-type {
    background-color: lightcyan;

}
thead>tr:nth-of-type(1)>th:nth-of-type(1) {
    border-top-left-radius: 15px;
}

thead>tr:nth-of-type(1)>th:last-of-type {
    border-top-right-radius: 15px;
}

tfoot>tr:nth-of-type(1)>td:nth-of-type(1) {
    border-bottom-left-radius: 15px;
}

tfoot>tr:nth-of-type(1)>td:last-of-type {
    border-bottom-right-radius: 15px;
}

運行實例 ?

點擊 "運行實例" 按鈕查看在線實例

WX20190909-123325@2x.png

批改狀態(tài):合格

老師批語:一個簡單的圓角表格, 不知難住了多少英雄好漢
本博文版權(quán)歸博主所有,轉(zhuǎn)載請注明地址!如有侵權(quán)、違法,請聯(lián)系admin@php.cn舉報處理!
全部評論 文明上網(wǎng)理性發(fā)言,請遵守新聞評論服務協(xié)議
0條評論
關于我們 免責申明 意見反饋 講師合作 廣告合作 最新更新
php中文網(wǎng):公益在線php培訓,幫助PHP學習者快速成長!
關注服務號 技術交流群
PHP中文網(wǎng)訂閱號
每天精選資源文章推送
PHP中文網(wǎng)APP
隨時隨地碎片化學習
PHP中文網(wǎng)抖音號
發(fā)現(xiàn)有趣的

Copyright 2014-2025 http://ipnx.cn/ All Rights Reserved | php.cn | 湘ICP備2023035733號

  • 登錄PHP中文網(wǎng),和優(yōu)秀的人一起學習!
    全站2000+教程免費學