サイト内検索

...HTML・XHTMLタグ...

table

外枠の罫線(境界線)のサイズ

外枠の罫線(境界線)のサイズは、table要素にborder属性を指定します。
[使い方]
<table border="5">
<tr>
<th></th>
<td></td>
</tr>
</table>
属性 属性値 説明
border 外枠の罫線(境界線)は表示されません。
<table border>〜</table>
border="0" 外枠の罫線(境界線)は表示されません。
<table border="0">〜</table>
border="" 整数の「ピクセル数(例・・"1")」を指定します。

サンプル

《borderの数値を1に指定した場合》

[bodyの中]

<table border="1" summary="ボーダーは「1」です。">
<tr>
<th>No</th>
<th>No</th>
</tr>
<tr>
<td>No</td>
<td>No</td>
</tr>
</table>

[ブラウザ上]

NoNo
NoNo

《borderの数値を10に指定した場合》

[bodyの中]

<table border="10"summary="ボーダーは「10」です。">
<tr>
<th>No</th>
<th>No</th>
</tr>
<tr>
<td>No</td>
<td>No</td>
</tr>
</table>

[ブラウザ上]

NoNo
NoNo

Copyright c 2007.10.01 luc All rights reserved.