table_01.rml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <rml>
  2. <head>
  3. <title>Table 01</title>
  4. <link type="text/rcss" href="../style.rcss"/>
  5. <link rel="help" href="https://www.w3.org/TR/2011/REC-CSS2-20110607/tables.html" />
  6. <link rel="match" href="reference/table_01-ref.rml"/>
  7. <meta name="Description" content="Basic table layout." />
  8. <style>
  9. table {
  10. border-width: 20dp 5dp 0;
  11. color: #333;
  12. text-align: center;
  13. margin: 0 auto;
  14. min-width: 100dp;
  15. max-width: 400dp;
  16. }
  17. table, table * {
  18. border-color: #666;
  19. }
  20. td {
  21. padding: 15dp 5dp;
  22. }
  23. col {
  24. background: #3d3;
  25. /* Used to test the paint order of positioned columns, should not affect the order. */
  26. position: relative;
  27. }
  28. col:first-child {
  29. background: #6df;
  30. border-right-width: 3dp;
  31. }
  32. col:nth-child(3) {
  33. background: #dd3;
  34. }
  35. thead {
  36. color: black;
  37. background: #fff5;
  38. border-bottom: 3dp #666;
  39. }
  40. tbody tr {
  41. border-bottom: 1dp #666a;
  42. }
  43. tbody tr:last-child {
  44. border-bottom: 0;
  45. }
  46. tbody tr:hover {
  47. background: #fff5;
  48. }
  49. tfoot {
  50. background: #666;
  51. color: #ccc;
  52. }
  53. tfoot td {
  54. padding-top: 0;
  55. padding-bottom: 0;
  56. text-align: right;
  57. height: 20dp;
  58. }
  59. </style>
  60. </head>
  61. <body>
  62. <table>
  63. <col/>
  64. <col span="2"/>
  65. <col/>
  66. <thead>
  67. <tr>
  68. <td>A</td>
  69. <td colspan="2">B</td>
  70. <td>C</td>
  71. </tr>
  72. </thead>
  73. <tbody>
  74. <tr>
  75. <td>D</td>
  76. <td>E</td>
  77. <td>F</td>
  78. <td>G</td>
  79. </tr>
  80. <tr>
  81. <td>H</td>
  82. <td>I</td>
  83. <td>J</td>
  84. <td>K</td>
  85. </tr>
  86. </tbody>
  87. <tfoot>
  88. <tr>
  89. <td colspan="4">[1] Footnote</td>
  90. </tr>
  91. </tfoot>
  92. </table>
  93. <handle size_target="#document"/>
  94. </body>
  95. </rml>