溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

怎么用Bootstrap做一個歷史朝代表

發(fā)布時間:2022-03-21 15:21:48 來源:億速云 閱讀:136 作者:iii 欄目:web開發(fā)

這篇“怎么用Bootstrap做一個歷史朝代表”文章的知識點大部分人都不太理解,所以小編給大家總結(jié)了以下內(nèi)容,內(nèi)容詳細,步驟清晰,具有一定的借鑒價值,希望大家閱讀完這篇文章能有所收獲,下面我們一起來看看這篇“怎么用Bootstrap做一個歷史朝代表”文章吧。

用Bootstrap做一個歷史朝代表

引入CDN,算好需要合并的單元格。

<!DOCTYPE html>
<html>

<head>
    <!-- 移動設備 -->
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta charset="utf-8" />
    <title>朝代表</title>
    <!-- bootstrap-cssCDN鏈接 -->
    <link rel="stylesheet" type="text/css" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.css" />
    <!-- jqueryCDN鏈接 -->
    <script src="https://cdn.staticfile.org/jquery/1.12.4/jquery.js" type="text/javascript" charset="utf-8"></script>
    <!-- bootstrap-jsCDN鏈接 -->
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>
    <h2 class="text-center">歷史朝代表</h2>
    <div class="container-fluid">
        <div class="table-responsive">
            <table class="table table-striped table-bordered table-hover">
                <thead>
                    <tr>
                        <th colspan="2">朝 代</th>
                        <th>起 訖</th>
                        <th>都 城</th>
                        <th>今 地</th>
                    </tr>
                </thead>
                <tr>
                    <th colspan="2">夏</th>
                    <td>約前2146-1675年</td>
                    <td>安邑</td>
                    <td>山西夏縣</td>
                </tr>
                <tr>
                    <th colspan="2">商</th>
                    <td>約前1675-1029年</td>
                    <td>亳</td>
                    <td>河南商丘</td>
                </tr>
                <tr>
                    <th rowspan="2">周</th>
                    <th>西周</th>
                    <td>約前1029-771年</td>
                    <td>鎬京</td>
                    <td>陜西西安</td>
                </tr>
                <tr>
                    <th>東周</th>
                    <td>前770-256年</td>
                    <td>洛邑</td>
                    <td>河南洛陽</td>
                </tr>
                <tr>
                    <th colspan="2">秦</th>
                    <td>前221-207年</td>
                    <td>咸陽</td>
                    <td>陜西咸陽</td>
                </tr>
                <tr>
                    <th rowspan="2">漢</th>
                    <th>西漢</th>
                    <td>前206&mdash;公元25</td>
                    <td>長安</td>
                    <td>陜西西安</td>
                </tr>
                <tr>
                    <th>東漢</th>
                    <td>25&mdash;220</td>
                    <td>洛陽</td>
                    <td>河南洛陽</td>
                </tr>
                <tr>
                    <th rowspan="3">三國</th>
                    <th>魏</th>
                    <td>220-265</td>
                    <td>洛陽</td>
                    <td>河南洛陽</td>
                </tr>
                <tr>
                    <th>蜀</th>
                    <td>221-263</td>
                    <td>成都</td>
                    <td>四川成都</td>
                </tr>
                <tr>
                    <th>吳</th>
                    <td>222-280</td>
                    <td>建業(yè)</td>
                    <td>江蘇南京</td>
                </tr>
                <tr>
                    <th colspan="2">西晉</th>
                    <td>265-317</td>
                    <td>洛陽</td>
                    <td>河南洛陽</td>
                </tr>
                <tr>
                    <th rowspan="2">東晉
                        <br>十六國</th>
                    <th>東晉</th>
                    <td>317-420</td>
                    <td>建康</td>
                    <td>江蘇南京</td>
                </tr>
                <tr>
                    <th>十六國</th>
                    <td>304-439</td>
                    <td>&mdash;</td>
                    <td>&mdash;</td>
                </tr>
                <tr>
                    <th rowspan="4">南朝</th>
                    <th>宋</th>
                    <td>420-479</td>
                    <td>建康</td>
                    <td>江蘇南京</td>
                </tr>
                <tr>
                    <th>齊</th>
                    <td>479-502</td>
                    <td>建康</td>
                    <td>江蘇南京</td>
                </tr>
                <tr>
                    <th>梁</th>
                    <td>502-557</td>
                    <td>建康</td>
                    <td>江蘇南京</td>
                </tr>
                <tr>
                    <th>陳</th>
                    <td>557-589</td>
                    <td>建康</td>
                    <td>江蘇南京</td>
                </tr>
                <tr>
                    <th rowspan="6">北朝</th>
                    <th rowspan="2">北魏</th>
                    <td rowspan="2">386-534</td>
                    <td>平城</td>
                    <td>山西大同</td>
                </tr>
                <tr>
                    <td>洛陽</td>
                    <td>河南洛陽</td>
                </tr>
                <tr>
                    <th>東魏</th>
                    <td>534-550</td>
                    <td>鄴</td>
                    <td>河北臨漳</td>
                </tr>
                <tr>
                    <th>北齊</th>
                    <td>550-577</td>
                    <td>鄴</td>
                    <td>河北臨漳</td>
                </tr>
                <tr>
                    <th>西魏</th>
                    <td>535-557</td>
                    <td>長安</td>
                    <td>陜西西安</td>
                </tr>
                <tr>
                    <th>北周</th>
                    <td>557-581</td>
                    <td>長安</td>
                    <td>陜西西安</td>
                </tr>
                <tr>
                    <th colspan="2">隋</th>
                    <td>581-618</td>
                    <td>大興</td>
                    <td>陜西西安</td>
                </tr>
                <tr>
                    <th colspan="2">唐</th>
                    <td>618-907</td>
                    <td>長安</td>
                    <td>陜西西安</td>
                </tr>
                <tr>
                    <th rowspan="6">五代十國</th>
                    <th>后梁</th>
                    <td>907-923</td>
                    <td>汴</td>
                    <td>河南開封</td>
                </tr>
                <tr>
                    <th>后唐</th>
                    <td>923-936</td>
                    <td>洛陽</td>
                    <td>河南洛陽</td>
                </tr>
                <tr>
                    <th>后晉</th>
                    <td>936-946</td>
                    <td>汴</td>
                    <td>河南開封</td>
                </tr>
                <tr>
                    <th>后漢</th>
                    <td>947-950</td>
                    <td>汴</td>
                    <td>河南開封</td>
                </tr>
                <tr>
                    <th>后周</th>
                    <td>951-960</td>
                    <td>汴</td>
                    <td>河南開封</td>
                </tr>
                <tr>
                    <th>十國</th>
                    <td>902-979</td>
                    <td>&mdash;</td>
                    <td>&mdash;</td>
                </tr>
                <tr>
                    <th rowspan="2">宋</th>
                    <th>北宋</th>
                    <td>960-1127</td>
                    <td>開封</td>
                    <td>河南開封</td>
                </tr>
                <tr>
                    <th>南宋</th>
                    <td>1127-1279</td>
                    <td>臨安</td>
                    <td>浙江杭州</td>
                </tr>
                <tr>
                    <th colspan="2">遼</th>
                    <td>907-1125</td>
                    <td>皇都(上京)</td>
                    <td>內(nèi)蒙古 巴林左旗</td>
                </tr>
                <tr>
                    <th colspan="2">西夏</th>
                    <td>1038-1227</td>
                    <td>興慶府</td>
                    <td>寧夏銀川</td>
                </tr>
                <tr>
                    <th rowspan="3" colspan="2">金</th>
                    <td rowspan="3">1115-1234</td>
                    <td>會寧</td>
                    <td>阿城(黑龍江)</td>
                </tr>
                <tr>
                    <td>中都</td>
                    <td>北京</td>
                </tr>
                <tr>
                    <td>開封</td>
                    <td>河南開封</td>
                </tr>
                <tr>
                    <th colspan="2">元</th>
                    <td>1206-1368</td>
                    <td>大都</td>
                    <td>北京</td>
                </tr>
                <tr>
                    <th colspan="2">明</th>
                    <td>1368-1644</td>
                    <td>北京</td>
                    <td>北京</td>
                </tr>
                <tr>
                    <th colspan="2">清</th>
                    <td>1616-1911</td>
                    <td>北京</td>
                    <td>北京</td>
                </tr>
                <tr>
                    <th colspan="2">中華民國</th>
                    <td>1912-1949</td>
                    <td>南京</td>
                    <td>江蘇南京</td>
                </tr>
                <tr>
                    <th colspan="5" class="text-center">中華人民共和國1949年10月1日成立,首都北京。</th>
                </tr>
            </table>
        </div>
    </div>
</body>

</html>

以上就是關(guān)于“怎么用Bootstrap做一個歷史朝代表”這篇文章的內(nèi)容,相信大家都有了一定的了解,希望小編分享的內(nèi)容對大家有幫助,若想了解更多相關(guān)的知識內(nèi)容,請關(guān)注億速云行業(yè)資訊頻道。

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI