OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style type="text/css" media="screen"> | 5 <style type="text/css" media="screen"> |
6 body { | 6 body { |
7 margin: 0; | 7 margin: 0; |
8 } | 8 } |
9 | 9 |
10 iframe { | 10 iframe { |
11 height: 200px; | 11 height: 200px; |
12 width: 200px; | 12 width: 200px; |
13 margin: 10px; | 13 margin: 10px; |
14 padding: 10px; | 14 padding: 10px; |
15 border: none; | 15 border: none; |
16 -webkit-transform: translateX(100px); | 16 transform: translateX(100px); |
17 } | 17 } |
18 | 18 |
19 .container { | 19 .container { |
20 position: absolute; | 20 position: absolute; |
21 top: 100px; | 21 top: 100px; |
22 -webkit-transform: translateZ(0); | 22 transform: translateZ(0); |
23 } | 23 } |
24 | 24 |
25 #indicator { | 25 #indicator { |
26 position: absolute; | 26 position: absolute; |
27 top: 120px; | 27 top: 120px; |
28 left: 120px; | 28 left: 120px; |
29 height: 200px; | 29 height: 200px; |
30 width: 200px; | 30 width: 200px; |
31 background-color: red; | 31 background-color: red; |
32 } | 32 } |
(...skipping 20 matching lines...) Expand all Loading... |
53 <body> | 53 <body> |
54 <!-- You should see a green box below. --> | 54 <!-- You should see a green box below. --> |
55 <div id="indicator"></div> | 55 <div id="indicator"></div> |
56 | 56 |
57 <div class="container"> | 57 <div class="container"> |
58 <iframe src="resources/green-red-subframe.html" scrolling="no"></iframe> | 58 <iframe src="resources/green-red-subframe.html" scrolling="no"></iframe> |
59 </div> | 59 </div> |
60 | 60 |
61 </body> | 61 </body> |
62 </html> | 62 </html> |
OLD | NEW |