乱码乱a∨中文字幕,在线免费激情视频,亚洲欧美久久夜夜潮,国产在线网址

  1. <sub id="hjl7n"></sub>

    1. <sub id="hjl7n"></sub>

      <legend id="hjl7n"></legend>

      當(dāng)前位置:首頁 >  站長 >  編程技術(shù) >  正文

      html table實現(xiàn)復(fù)雜表頭的示例代碼

       2020-11-06 14:52  來源: 腳本之家   我來投稿 撤稿糾錯

        阿里云優(yōu)惠券 先領(lǐng)券再下單

      這篇文章主要介紹了html table實現(xiàn)復(fù)雜表頭的示例代碼,文中通過示例代碼介紹的非常詳細,對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧

      使用html做復(fù)雜的表格。復(fù)雜表格一般是用到td的兩個屬性:rowspan 、colspan屬性值。

      在html中 標簽定義 HTML 表格中的標準單元格。

      (1)rowspan 屬性規(guī)定單元格可橫跨的行數(shù);

      (2)colspan 屬性規(guī)定單元格可橫跨的列數(shù)。

      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <title>多表頭表格</title>
      </head>
      <body>
      <table id="tab" cellpadding="1" cellspacing="1" border="1">
      <tr>
      <th rowspan="2">序號</th>
      <th rowspan="2">監(jiān)測位置</th>
      <th rowspan="2">供電通路</th>
      <th rowspan="2">供電電壓</th>
      <th rowspan="2">負載電流</th>
      <th rowspan="2">雷擊次數(shù)</th>
      <th rowspan="2">最近一次雷擊時間</th>
      <th colspan="2">后備保護空開狀態(tài)</th>
      <th rowspan="2">SPD損害數(shù)量</th>
      <th colspan="2">輸出空開狀態(tài)</th>
      </tr>
      <tr>
      <th>B級</th>
      <th>C級</th>
      <th>1路</th>
      <th>2路</th>
      </tr>
      <tr> <th rowspan="4">1</th>
      </tr>
      <tr>
      <th>1</th>
      <th>78</th>
      <th>96</th>
      <th>67</th>
      <th>98</th>
      <th>88</th>
      <th>75</th>
      <th>94</th>
      <th>69</th>
      <th>23 </th>
      <th>33 </th>
      </tr>
      <tr>
      <th colspan="2">提示建議</th>
      <th colspan="2">智能防雷箱狀態(tài)</th>
      <th colspan="2">防雷箱型號</th>
      <th colspan="3">防雷箱序列號</th>
      <th colspan="2">防雷箱版本</th>
      </tr>
      <tr>
      <th colspan="2">建議整機按規(guī)程檢測</th>
      <th colspan="2">在線</th>
      <th colspan="2">2018041201-035PF</th>
      <th colspan="3">2018041201-256</th>
      <th colspan="2">V1.0.0</th>
      </tr>
      </table>
      </body>
      </html>

      效果圖:

      HTML Table設(shè)置無邊框、無分割線

      無邊框

      <table id="tbl" border=1 width="80%" frame=void ></table>

      frame屬性指定了對于邊框顯示的規(guī)則,其中可以選擇的設(shè)置有如下幾項:

      void 設(shè)置無邊框;

      above 只顯示上邊框;

      below 只顯示下邊框;

      vsides 只顯示左右邊框;

      hsides 只顯示上下邊框;

      lhs 只顯示左邊框;

      rhs 只顯示右邊框。

      無分割線

      <table id="tbl" border=1 width="80%" rules=none ></table>

      rules屬性指定了對于分割線顯示的規(guī)則,”none”表示完全無分割線,另外可以設(shè)置”rows”、”cols”,僅從字面意思上看很容易造成誤導(dǎo),這里要注意:rows表明行間無分割線,也就是同一行中的數(shù)據(jù)沒有分割線分割;cols表明列間無分割線,也就是同一列中的數(shù)據(jù)沒有分割線分割。

      到此這篇關(guān)于html table實現(xiàn)復(fù)雜表頭的示例代碼的文章就介紹到這了,更多相關(guān)html table復(fù)雜表頭內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持腳本之家!

      來源:腳本之家

      鏈接:https://www.jb51.net/web/732519.html

      申請創(chuàng)業(yè)報道,分享創(chuàng)業(yè)好點子。點擊此處,共同探討創(chuàng)業(yè)新機遇!

      相關(guān)標簽
      html

      相關(guān)文章

      熱門排行

      信息推薦