HTML CSS Reference/HTML Attributes Reference/rules
Версия от 09:21, 26 мая 2010; (обсуждение)
Содержание
"rules" Example
<HTML>
<head><Title>Example For rules</Title></head>
<body>
<table id="myTable" border="" rules="">
<thead>
<tr>
<td>Header</td>
<td>Header</td>
<td>Header</td>
<td>Header</td>
<td>Header</td>
<td>Header</td>
</tr>
</thead>
<tr>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
</tr>
<tr>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
</tr>
<tr>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
</tr>
<tr>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
</tr>
<tfoot>
<tr>
<td>Footer</td>
<td>Footer</td>
<td>Footer</td>
<td>Footer</td>
<td>Footer</td>
<td>Footer</td>
</tr>
</tfoot>
</table>
<br>
<button onclick="myTable.rules="none"">none</button>
<button onclick="myTable.rules="all"">all</button>
<button onclick="myTable.rules="cols"">cols</button>
<button onclick="myTable.rules="groups"">groups</button>
<button onclick="myTable.rules="rows"">rows</button></body>
</HTML>
rules is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<table> |
+----------------+--------------------------------------------------------------+
rules Possible Values
Possible values include
all,
cols,
group (displays only group borders),
none,
rows.
"rules" Syntax and Note
Note:
This attribute controls which portions of a table"s borders are displayed.
Syntax:
<table rules="value"> . . . </table>