サイト内検索
...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>No1</th> <th>No2</th> </tr> <tr> <td>No3</td> <td>No4</td> </tr> </table> |
[ブラウザ上]
|
||||
《borderの数値を10に指定した場合》 [bodyの中] <table border="10"summary="ボーダーは「10」です。"><tr> <th>No1</th> <th>No2</th> </tr> <tr> <td>No3</td> <td>No4</td> </tr> </table> |
[ブラウザ上]
|