Comment afficher & lt; div & gt; sur une applet Java dans Chrome

- Je incorporer élément iframe dans ma page HTML:

<iframe src="applet.html" frameborder="0" style="width: 600px; height: 600px;"></iframe>

applet.html ressemble à ceci:

<html>
<head>
</head>

<body>
    <applet code="ClockApplet.class" width="100%" height="100%">
    </applet>
</body>
</html>

Le problème est: comment faire pour afficher un élément div (avec position: absolute) sur une applet Java qui est à l'intérieur de l'iframe.

J'ai essayé d'utiliser un autre élément iframe:

<html>
<head>

</head>
<body>
    <iframe src="applet.html" frameborder="0" style="width: 600px; height: 600px;"></iframe>

    <iframe src="javascript:false;" frameborder="0" style="position: absolute; top: 10px; left: 10px; width: 150px; height: 150px; z-index: 99"></iframe>
    <div style="position: absolute; top: 10px; left: 10px; background-color: gray; height: 150px; width: 150px; z-index: 100">Hello World</div>
</body>
</html> 

Fonctionne très bien sous IE, Firefox mais pas sur Chrome.

source d'informationauteur Bald | 2011-06-08