OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
esprehn
2014/06/12 00:36:44
Leave out html, head and body.
| |
3 <head> | |
4 <style> | |
5 #target1 { display: initial; color: green; background: initial; } | |
6 | |
7 #parent { color: green; } | |
8 #target2 { display: inherit; color: inherit; background: inherit; } | |
9 | |
10 #target3 { display: initial; color: green; background: initial; } | |
11 | |
12 #target4 { display: initial; color: initial; background: initial; } | |
13 | |
14 #target5 { display: initial; color: green; background: initial; } | |
15 | |
16 #target6 { display: initial; color: initial; background: initial; } | |
17 | |
18 #target7 { display: initial; direction: rtl; } | |
19 | |
20 #target8 { display: initial; direction: rtl; } | |
21 | |
22 #parent9 { color: green; } | |
23 #target9 { display: initial; color: inherit; } | |
24 </style> | |
25 </head> | |
26 <body> | |
27 <div id='target1'>green color, no background-color</div> | |
28 | |
29 <div id='parent'> | |
30 <div id='target2'>green color, no background-color</div> | |
31 </div> | |
32 | |
33 <div id='target3'>green color</div> | |
34 | |
35 <div id='target4'>not red color</div> | |
36 | |
37 <div id='target5'>green color, no background-color</div> | |
38 | |
39 <div id='target6'>not red color</div> | |
40 | |
41 <div id='target7'>direction is rtl</div> | |
42 | |
43 <div id='target8'>direction is rtl</div> | |
44 | |
45 <div id='parent9'> | |
46 <div id='target9'>green color</div> | |
47 </div> | |
48 </body> | |
49 </html> | |
50 | |
OLD | NEW |