bug1394226-ref.html 789 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Table border collapse</title>
  5. <style>
  6. table {
  7. border-collapse: collapse;
  8. }
  9. tr.odd {
  10. background-color: LightCyan;
  11. }
  12. tr.even {
  13. background-color: LightSkyBlue;
  14. }
  15. td {
  16. border: 5px solid DarkBlue;
  17. }
  18. div {
  19. height: 10px;
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <div></div>
  25. <table>
  26. <tr class="odd">
  27. <td>Cell 1-1</td>
  28. <td>Cell 1-2</td>
  29. </tr>
  30. <tr class="even">
  31. <td>Cell 2-1</td>
  32. <td>Cell 2-2
  33. <table>
  34. <tr class="odd">
  35. <td>Cell 2-2/1-1</td>
  36. <td>Cell 2-2/1-2</td>
  37. </tr>
  38. <tr class="even">
  39. <td>Cell 2-2/2-1</td>
  40. <td>Cell 2-2/2-2</td>
  41. </tr>
  42. </table>
  43. </td>
  44. </tr>
  45. </table>
  46. </body>
  47. </html>