国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
表格的基本語法

 

 

表格

 

表格的基本語法

<table>...</table> - 定義表格

<tr> - 定義表行

<th> - 定義表頭

<td> - 定義表元(表格的具體數(shù)據(jù))

帶邊框的表格:

<table border><tr><th>Food</th><th>Drink</th><th>Sweet</th><tr><td>A</td><td>B</td><td>C</td> </table>

Food Drink Sweet
A B C

不帶邊框的表格:

<table><tr><th>Food</th><th>Drink</th><th>Sweet</th><tr><td>A</td><td>B</td><td>C</td> </table>

Food Drink Sweet
A B C

跨多行、多列的表元(Table Span)

跨多列的表元 <th colspan=#>

<table border><tr><th colspan=3> Morning Menu</th><tr><th>Food</th> <th>Drink</th> <th>Sweet</th><tr><td>A</td><td>B</td><td>C</td></table>

Morning Menu
Food Drink Sweet
A B C

跨多行的表元 <th rowspan=#>

<table border><tr><th rowspan=3> Morning Menu</th> <th>Food</th> <td>A</td></tr><tr><th>Drink</th> <td>B</td></tr><tr><th>Sweet</th> <td>C</td></tr></table>

Morning Menu Food A
Drink B
Sweet C

表格尺寸設(shè)置

<table border=#>

邊框尺寸設(shè)置:

<table border=10><tr><th>Food</th><th>Drink</th><th>Sweet</th><tr><td>A</td><td>B</td><td>C</td> </table>

Food Drink Sweet
A B C

<table border width=# height=#>

表格尺寸設(shè)置:

<table border width=170 height=100><tr><th>Food</th><th>Drink</th><th>Sweet</th><tr><td>A</td><td>B</td><td>C</td> </table>

Food Drink Sweet
A B C

<table border cellspacing=#>

表元間隙設(shè)置:

<table border cellspacing=10><tr><th>Food</th><th>Drink</th><th>Sweet</th><tr><td>A</td><td>B</td><td>C</td> </table>

Food Drink Sweet
A B C

<table border cellpadding=#>

表元內(nèi)部空白設(shè)置:

<table border cellpadding=10><tr><th>Food</th><th>Drink</th><th>Sweet</th><tr><td>A</td><td>B</td><td>C</td> </table>

Food Drink Sweet
A B C

表格內(nèi)文字的對(duì)齊/布局

<tr align=#>

<th align=#> #=left, center, right

<td align=#>

<table border width=160><tr> <th>Food</th><th>Drink</th><th>Sweet</th><tr> <td align=left>A</td> <td align=center>B</td> <td align=right>C</td> </table>

Food Drink Sweet
A B C

<tr valign=#>

<th valign=#> #=top, middle, bottom, baseline

<td valign=#>

<table border height=100><tr> <th>Food</th><th>Drink</th> <th>Sweet</th><th>Other</th><tr> <td valign=top>A</td> <td valign=middle>B</td> <td valign=bottom>C</td> <td valign=baseline>D</td></table>

Food Drink Sweet Other
A B C D

表格在頁面中的對(duì)齊/布局(Floating Table)

<table align=left>

 

<table align="left" border><tr><th>Food</th><th>Drink</th><th>Sweet</th><tr><td>A</td><td>B</td><td>C</td></table>My favorites...<br>cookies, chocolates, and more.

Food Drink Sweet
A B C

 

My favorites...

cookies, chocolates, and more.

<table align=right>

Food Drink Sweet
A B C

My favorites...

cookies, chocolates, and more.

<table vspace=# hspace=#> #=space value

 

<table align="left" border vspace=20 hspace=30><tr><th>Food</th><th>Drink</th><th>Sweet</th><tr><td>A</td><td>B</td><td>C</td></table>My favorites...<br>cookies, chocolates, and more.

Food Drink Sweet
A B C

 

My favorites...

cookies, chocolates, and more.

表格的標(biāo)題

<caption align=#> ... </caption> #=left, center, right

<table border><caption align=center>Lunch</caption><tr><th>Food</th><th>Drink</th><th>Sweet</th><tr><td>A</td><td>B</td><td>C</td> </table>

 

Lunch

Food Drink Sweet
A B C

<caption valign=#> ... </caption> #=top, bottom

  • valign=top is default.

 

<table border><caption valign=bottom>Lunch</caption><tr><th>Food</th><th>Drink</th><th>Sweet</th><tr><td>A</td><td>B</td><td>C</td> </table>

 

Lunch

Food Drink Sweet
A B C

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
表格屬性設(shè)置
表格(TABLE)標(biāo)記和進(jìn)階
表格邊框合并
四個(gè)好看的CSS樣式表格
表格練習(xí)
tabel隱藏第一行控制列寬
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服