框架(frame)属性

  1. <html>
  2. <body>
  3.  
  4. <p><b>注释:</b>frame 属性无法在 Internet Explorer 中正确地显示。</p>
  5.  
  6. <p>Table with frame="box":</p>
  7. <table frame="box">
  8. <tr>
  9. <th>Month</th>
  10. <th>Savings</th>
  11. </tr>
  12. <tr>
  13. <td>January</td>
  14. <td>$100</td>
  15. </tr>
  16. </table>
  17.  
  18. <p>Table with frame="above":</p>
  19. <table frame="above">
  20. <tr>
  21. <th>Month</th>
  22. <th>Savings</th>
  23. </tr>
  24. <tr>
  25. <td>January</td>
  26. <td>$100</td>
  27. </tr>
  28. </table>
  29.  
  30. <p>Table with frame="below":</p>
  31. <table frame="below">
  32. <tr>
  33. <th>Month</th>
  34. <th>Savings</th>
  35. </tr>
  36. <tr>
  37. <td>January</td>
  38. <td>$100</td>
  39. </tr>
  40. </table>
  41.  
  42. <p>Table with frame="hsides":</p>
  43. <table frame="hsides">
  44. <tr>
  45. <th>Month</th>
  46. <th>Savings</th>
  47. </tr>
  48. <tr>
  49. <td>January</td>
  50. <td>$100</td>
  51. </tr>
  52. </table>
  53.  
  54. <p>Table with frame="vsides":</p>
  55. <table frame="vsides">
  56. <tr>
  57. <th>Month</th>
  58. <th>Savings</th>
  59. </tr>
  60. <tr>
  61. <td>January</td>
  62. <td>$100</td>
  63. </tr>
  64. </table>
  65.  
  66. </body>
  67. </html>