OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body style="font-family: ahem; -webkit-font-smoothing: none;"> | 3 <body style="font-family: Ahem; -webkit-font-smoothing: none;"> |
4 <style> | 4 <style> |
5 div.table { display: table; } | 5 div.table { display: table; } |
6 div.cell { display: table-cell; width: 50px; height: 50px; background-color:
blue; } | 6 div.cell { display: table-cell; width: 50px; height: 50px; background-color:
blue; } |
7 div.row { display: table-row; } | 7 div.row { display: table-row; } |
8 div.test { background-color: green; width: 50px; height: 50px; } | 8 div.test { background-color: green; width: 50px; height: 50px; } |
9 </style> | 9 </style> |
10 | 10 |
11 <div class="table" id="table-1"> | 11 <div class="table" id="table-1"> |
12 <div class="row" id="row-1"> | 12 <div class="row" id="row-1"> |
13 <div class="cell"></div> | 13 <div class="cell"></div> |
(...skipping 17 matching lines...) Expand all Loading... |
31 var before = document.getElementById(beforeID); | 31 var before = document.getElementById(beforeID); |
32 table.insertBefore(createDiv(), before); | 32 table.insertBefore(createDiv(), before); |
33 } | 33 } |
34 | 34 |
35 document.body.offsetTop; | 35 document.body.offsetTop; |
36 | 36 |
37 insertDiv("table-1", "row-2"); | 37 insertDiv("table-1", "row-2"); |
38 </script> | 38 </script> |
39 </body> | 39 </body> |
40 </html> | 40 </html> |
OLD | NEW |