代碼:
<DIV align=center><TABLE style="WIDTH: 400px; HEIGHT: 28px" cellSpacing=1 cellPadding=0 width=347 bgColor=#ff0000 border=0><TBODY><TR bgColor=#ffffff height=20><TD><DIV align=center>表格內(nèi)容</DIV></TD><TD><DIV align=center>表格內(nèi)容</DIV></TD><TD><DIV align=center>表格內(nèi)容</DIV></TD><TD><DIV align=center>表格內(nèi)容</DIV></TD><TR bgColor=#ffffff height=20><TD><DIV align=center>表格內(nèi)容</DIV></TD><TD><DIV align=center>表格內(nèi)容</DIV></TD><TD><DIV align=center>表格內(nèi)容</DIV></TD><TD><DIV align=center>表格內(nèi)容</DIV></TD></TR></TBODY></TABLE></DIV>
圖示:
表格內(nèi)容 |
表格內(nèi)容 |
表格內(nèi)容 |
表格內(nèi)容 |
表格內(nèi)容 |
表格內(nèi)容 |
表格內(nèi)容 |
表格內(nèi)容 |
代碼注解:
<table aling=center>...</table> 表格位置置中
<table aling=left>...</table> 表格位置,置左
<table border=參數(shù)>...</table> 設(shè)定表格邊框大小
<table background=圖片路徑>...</table>背景圖片的URL=網(wǎng)址路徑
<table bgcolor=顏色碼>...</table> 設(shè)定表格的背景顏色
<table borderclor=顏色碼>...</table> 設(shè)定表格邊框的顏色
<table borderclordark=顏色碼>...</table> 設(shè)定表格暗邊框的顏色
<table borderclorlight=顏色碼>...</table> 設(shè)定表格亮邊框的顏色
<table cellpadding=參數(shù)>...</table> 指定內(nèi)容與網(wǎng)格線之間的間距(使用數(shù)字)
<table cellspacing=參數(shù)>...</table> 指定網(wǎng)格線與網(wǎng)格線之間的距離(使用數(shù)字)
<table cols=參數(shù)>...</table> 指定表格的欄數(shù)
<table frame=參數(shù)>...</table> 設(shè)定表格外框線的顯示方式
<table width=寬度>...</table>指定表格的寬度大小(使用數(shù)字)
<table height=高度>...</table>指定表格的高度大小(使用數(shù)字)
<td colspan=參數(shù)>...</td>指定儲存格合并欄的欄數(shù)(使用數(shù)字)
<td rowspan=參數(shù)>...</td>指定儲存格合并列的列數(shù)(使用數(shù)字)
以上數(shù)據(jù)可以根據(jù)需要修改

上一篇:【演示】博客日志中設(shè)置滾動條的代碼
|