05.HTML:表格

打開工具:=> HBuilderX

選擇:文件 => 新建 => html文件 => 給html文件起個名字這裡我起 index.html ‘index是代表首頁的意思’,‘html這裡是代表文件的後綴’

05.HTML:表格

<code>## 表格
<table>

\t 111
222


111
\t222

/<table>/<code>
<code>tr         | table row 代表行  |
td | table data 代表列 |
colspan | 跨列 |
rowspan | 跨行 |
table標籤中的border屬性 | 數值為1時,雙線框 |/<code>
05.HTML:表格

05.HTML:表格

<code>## caption 表格標題添加
<table>
<thead>
<caption>表格標題/<caption>

111
222
333

/<thead>

<tbody>

111
222
333

/<tbody>

/<table>
通常表項標題會使用th進行加粗強調文本

*thead / tbody** 表示表格標題和表格主題內容主要用於分寫樣式使用/<code>


分享到:


相關文章: