Wedページ作成の友テーブルの使い方>テーブルの背景に色をつける

テーブルの背景に色をつける

・bgcolor="カラー名"
ソース
<table border="1" width="150" height="150" bgcolor="orange">
<tr bgcolor="#0000ff">
<td>文字1</td>
<td>文字2</td>
<td>文字3</td>
</tr>
<tr>
<td bgcolor="red">文字4</td>
<td>文字5</td>
<td>文字6</td>
</tr>
<tr>
<td>文字7</td>
<td>文字8</td>
<td>文字9</td>
</tr>
</table>
表示結果
文字1 文字2 文字3
文字4 文字5 文字6
文字7 文字8 文字9

上記タグの注意点
・『bgcolor="カラー"』のタグは、テーブル全体の背景指定だけでなく、<tr>や<td>にも個別で背景色指定が出来ます。


Wedページ作成の友テーブルの使い方>テーブルの背景に色をつける

Copyright ©2006〜2006 伝説のおじいさま All Right Reserved   [info@zizii.vv.cx]