OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 body { | 4 body { |
5 margin: 0; | 5 margin: 0; |
6 } | 6 } |
7 | 7 |
8 #canvas { | 8 #canvas { |
9 width: 200px; | 9 width: 200px; |
10 height: 200px; | 10 height: 200px; |
11 position: relative; | 11 position: relative; |
12 background-color: silver; | 12 background-color: silver; |
13 -webkit-transform: translateZ(0px); | 13 transform: translateZ(0px); |
14 } | 14 } |
15 | 15 |
16 #container { | 16 #container { |
17 left: 0px; | 17 left: 0px; |
18 top: 0px; | 18 top: 0px; |
19 z-index: 1; | 19 z-index: 1; |
20 border: 2px solid green; | 20 border: 2px solid green; |
21 -webkit-transform: translateZ(0px); | 21 transform: translateZ(0px); |
22 } | 22 } |
23 | 23 |
24 .box { | 24 .box { |
25 position: absolute; | 25 position: absolute; |
26 height: 100px; | 26 height: 100px; |
27 width: 100px; | 27 width: 100px; |
28 } | 28 } |
29 | 29 |
30 #target { | 30 #target { |
31 left: 50px; | 31 left: 50px; |
(...skipping 23 matching lines...) Expand all Loading... |
55 <body> | 55 <body> |
56 <div id="canvas"> | 56 <div id="canvas"> |
57 <div id="container" class="box"> | 57 <div id="container" class="box"> |
58 <div id="target" class="box"> | 58 <div id="target" class="box"> |
59 </div> | 59 </div> |
60 </div> | 60 </div> |
61 </div> | 61 </div> |
62 <div id="results"></div> | 62 <div id="results"></div> |
63 </body> | 63 </body> |
64 </html> | 64 </html> |
OLD | NEW |