|
1 <!DOCTYPE HTML> |
|
2 <html><head> |
|
3 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
|
4 |
|
5 |
|
6 <style type="text/css"> |
|
7 |
|
8 .p { marker: url('#c'); } |
|
9 |
|
10 </style> |
|
11 <script type="text/javascript"> |
|
12 |
|
13 function boom() |
|
14 { |
|
15 document.getElementById("a").setAttribute("class", "p"); |
|
16 document.documentElement.offsetHeight; |
|
17 document.getElementById("b").setAttribute("id", "c"); |
|
18 } |
|
19 |
|
20 </script> |
|
21 </head><body onload="boom();"><div class="p" id="a">C</div><div id="c"></div></body></html> |