OLD | NEW |
1 You should see the number 0 below, and the grey box should fit it snugly. | 1 You should see the number 0 below, and the grey box should fit it snugly. |
2 | 2 |
3 <span style="position:relative"> | 3 <span style="position:relative"> |
4 <div style="position:absolute;left:10px;top:10px;background-color:grey"> | 4 <div style="position:absolute;left:10px;top:10px;background-color:grey"> |
5 <div style="background-color:#acacac; padding:1px;"> | 5 <div style="background-color:#acacac; padding:1px;"> |
6 <div><div>0</div></div> | 6 <div><div>0</div></div> |
7 <div id="one">1</div> | 7 <div id="one">1</div> |
8 </div> | 8 </div> |
9 <script> | 9 <script> |
10 document.body.offsetLeft; | 10 document.body.offsetLeft; |
11 document.getElementById('one').style.display = 'none'; | 11 document.getElementById('one').style.display = 'none'; |
12 </script> | 12 </script> |
13 </span> | 13 </span> |
OLD | NEW |