婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > 表格(TABLE)標記(TAGS)詳細介紹

表格(TABLE)標記(TAGS)詳細介紹

熱門標簽:青海保險智能外呼系統商家 新鄉機器人外呼系統 最簡單的百度地圖標注店鋪 錦州企業外呼系統 水經注萬能地圖標注 AI外呼系統 價格 梧州地圖標注app 禹州電話外呼系統 營口400電話申請
表格的基本語法

<table>...</table> - 定義表格
<tr> - 定義表行
<th> - 定義表頭
<td> - 定義表元(表格的具體數據)

帶邊框的表格: 


復制代碼
代碼如下:

<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

 表格尺寸設置

<table border=#>

邊框尺寸設置: 


復制代碼
代碼如下:

<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=#>

表格尺寸設置: 


復制代碼
代碼如下:

<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=#>

表元間隙設置: 


復制代碼
代碼如下:

<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=#>

表元內部空白設置: 


復制代碼
代碼如下:

<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

 表格內文字的對齊/布局

<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

 表格在頁面中的對齊/布局(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.

 表格的標題

<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>

Food Drink Sweet
A B C
Lunch

標簽:荊門 昭通 青島 懷化 潮州 延邊 哈密 山南

巨人網絡通訊聲明:本文標題《表格(TABLE)標記(TAGS)詳細介紹》,本文關鍵詞  表格,TABLE,標記,TAGS,詳細,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《表格(TABLE)標記(TAGS)詳細介紹》相關的同類信息!
  • 本頁收集關于表格(TABLE)標記(TAGS)詳細介紹的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 马龙县| 东乡族自治县| 自贡市| 恭城| 东港市| 长寿区| 微博| 台州市| 准格尔旗| 青州市| 杂多县| 呼图壁县| 苗栗市| 英超| 郎溪县| 抚松县| 绍兴县| 金沙县| 远安县| 黑河市| 惠水县| 云霄县| 安岳县| 静宁县| 陵水| 观塘区| 和顺县| 平和县| 平顺县| 大荔县| 化州市| 荔浦县| 湖北省| 惠安县| 泊头市| 龙门县| 女性| 长沙市| 琼结县| 秦皇岛市| 金川县|