ajuster une iframe à son contenu
Bonjour
j'aimerais bien faire un iframe qui change sa taille selon le contenu d'une page.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <!DOCTYPE html>
<title>Bienvenue</title>
<meta charset="utf-8" />
<SCRIPT LANGUAGE=javascript type="text/javascript">
<!--
//-->
</SCRIPT>
<!--[if IE]><style>#header h1 a:hover{font-size:75px;}</style><![endif]-->
</head>
<body onload="IframeStruct('milieu');">
<div>
<iframe frameborder="0" src="master-page-haut.html" scrolling="no" width="100%" height="250" name="haut" id="haut"></iframe>
</div>
<div>
<iframe src="index-page.html" scrolling="no" width="100%" height="dynamique" id="milieu"></iframe>
</div><div>
<iframe src="master-page-bas.html" scrolling="no" width="100%" height="400" name="bas" id="bas"></iframe>
</div>
</body>
</html> |
sur master-page-haut.html j'ai un menu qui contient plusieurs page et chaque une à une taille( selon contenu). donc le height deusiéme iframe doit être dynamique.
j'ai testé quelque code mais ça ne marche pas .
Merci