HTML <table> 鏍囩


瀹炰緥

涓涓畝鍗曠殑 HTML 琛ㄦ牸锛屽寘鍚袱鍒椾袱琛岋細

<table border="1">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>

灏濊瘯涓涓 禄
锛堟洿澶氬疄渚嬭椤甸潰搴曢儴锛

娴忚鍣ㄦ敮鎸

Internet ExplorerFirefoxOperaGoogle ChromeSafari

鎵鏈変富娴佹祻瑙堝櫒閮芥敮鎸 <table> 鏍囩銆


鏍囩瀹氫箟鍙婁娇鐢ㄨ鏄

<table> 鏍囩瀹氫箟 HTML 琛ㄦ牸

涓涓 HTML 琛ㄦ牸鍖呮嫭 <table> 鍏冪礌锛屼竴涓垨澶氫釜 <tr><th> 浠ュ強 <td>快三大师福彩专家—官方网址22270.COM鍏冪礌銆

<tr> 鍏冪礌瀹氫箟琛ㄦ牸琛岋紝<th> 鍏冪礌瀹氫箟琛ㄥご锛<td> 鍏冪礌瀹氫箟琛ㄦ牸鍗曞厓銆

鏇村鏉傜殑 HTML 琛ㄦ牸涔熷彲鑳藉寘鎷 <caption>銆<col>銆<colgroup>銆<thead>銆<tfoot> 浠ュ強 <tbody> 鍏冪礌銆


HTML 4.01 涓 HTML5涔嬮棿鐨勫樊寮

鍦 HTML5 涓紝浠呮敮鎸 "border" 灞炴э紝骞朵笖鍙厑璁镐娇鐢ㄥ "1" 鎴 ""銆


灞炴

灞炴 鎻忚堪
align left
center
right
HTML5 涓嶆敮鎸併侶TML 4.01 宸插簾寮冦 瑙勫畾琛ㄦ牸鐩稿鍛ㄥ洿鍏冪礌鐨勫榻愭柟寮忋
bgcolor rgb(x,x,x)
#xxxxxx
colorname
快三大师福彩专家—官方网址22270.COMHTML5 涓嶆敮鎸併侶TML 4.01 宸插簾寮冦 瑙勫畾琛ㄦ牸鐨勮儗鏅鑹层
border 1
""
瑙勫畾琛ㄦ牸鍗曞厓鏄惁鎷ユ湁杈规銆
cellpadding pixels HTML5 涓嶆敮鎸併瑙勫畾鍗曞厓杈规部涓庡叾鍐呭涔嬮棿鐨勭┖鐧姐
cellspacing pixels HTML5 涓嶆敮鎸併瑙勫畾鍗曞厓鏍间箣闂寸殑绌虹櫧銆
frame void
above
below
hsides
lhs
rhs
vsides
box
border
HTML5 涓嶆敮鎸併瑙勫畾澶栦晶杈规鐨勫摢涓儴鍒嗘槸鍙鐨勩
rules none
groups
rows
cols
all
HTML5 涓嶆敮鎸併瑙勫畾鍐呬晶杈规鐨勫摢涓儴鍒嗘槸鍙鐨勩
summary text HTML5 涓嶆敮鎸併瑙勫畾琛ㄦ牸鐨勬憳瑕併
width pixels
%
HTML5 涓嶆敮鎸併瑙勫畾琛ㄦ牸鐨勫搴︺


鍏ㄥ眬灞炴

<table> 鏍囩鏀寔 HTML 鐨勫叏灞灞炴


浜嬩欢灞炴

<table> 鏍囩鏀寔 HTML 鐨勪簨浠跺睘鎬


Examples

灏濊瘯涓涓 - 瀹炰緥

琛ㄦ牸涓殑鏍囬
鏈緥婕旂ず濡備綍鏄剧ず琛ㄦ牸鏍囬銆

绌哄崟鍏冩牸
快三大师福彩专家—官方网址22270.COM鏈緥婕旂ず濡備綍浣跨敤 "&nbsp;" 澶勭悊娌℃湁鍐呭鐨勫崟鍏冩牸銆

甯︽湁鏍囬鐨勮〃鏍
鏈緥婕旂ず涓涓甫鏍囬(caption)鐨勮〃鏍笺

琛ㄦ牸鍐呯殑鏍囩
鏈緥婕旂ず濡備綍鍦ㄥ叾浠栫殑鍏冪礌鍐呮樉绀哄厓绱犮

璺ㄨ鎴栬法鍒楃殑琛ㄦ牸鍗曞厓鏍
鏈緥婕旂ず濡備綍瀹氫箟璺ㄨ鎴栬法鍒楃殑琛ㄦ牸鍗曞厓鏍笺


鐩稿叧鏂囩珷

HTML 鏁欑▼锛HTML 琛ㄦ牸

HTML DOM 鍙傝冩墜鍐岋細Table 瀵硅薄