HTML CSS Reference/HTML Attributes Reference/frame — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Текущая версия на 08:20, 26 мая 2010

"frame" Example

    
<HTML>
<BODY>
    <table id="myTable" border="" frame="">
       <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.frame="void"">VOID</button>
     <button onclick="myTable.frame="above"">ABOVE</button>
     <button onclick="myTable.frame="below"">BELOW</button>
     <button onclick="myTable.frame="border"">BORDER</button>
     <button onclick="myTable.frame="hsides"">HSIDES</button>
     <button onclick="myTable.frame="lhs"">LHS</button>
     <button onclick="myTable.frame="rhs"">RHS</button>
     <button onclick="myTable.frame="vsides"">VSIDES</button>
     <button onclick="myTable.frame="box"">BOX</button>
</BODY>
</HTML>



frame is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<table>                                                       |
+----------------+--------------------------------------------------------------+



"frame" Syntax and Note

Note:
    
This attribute determines how to display a table"s border frame. 
Possible values include 
void (default), 
above, 
below, 
border, 
box, 
hsides, 
lhs, 
rhs, 
vsides.
    
Syntax:
    
<table frame="value"> . . . </table>