1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
<html>
<head>
<style>
.iframe {
font-family: Trebuchet MS, Verdana, Arial;
font-size: 11px;
border: solid 1px black;
border-top: 0;
}
DIV.decorateur {
border: solid 1px black;
border-top: 0;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<h1>Problème</h1>
<p>
Le code suivant ne fonctionne pas sous mac :
<?php print htmlentities('<iframe class="iframe" style="width: 500px; height: 80px;" frameborder="0" src="empty.html"></iframe>');?>
</p>
<p>
<iframe class="iframe" style="width: 500px; height: 80px;" frameborder="0" src="empty.html"></iframe>
</p>
<br>
<h3>Solution du DIV decorateur</h3>
<p>
Cette solution consiste à entourer l'iframe d'un div qui
a pour unique interet d'entourer l'iframe et de lui afficher un
cadre. Ainsi l'iframe peut s'afficher correctement sous MAC.
</p>
<div class="decorateur" style="width: 500px; height: 80px;">
<iframe style="width: 500px; height: 80px;" frameborder="0" src="empty.html"></iframe>
</div>
<br>
<h3>Solution de la balise object</h3>
<object class="iframe" type="text/html" data="empty.html" style="width: 500px; height: 80px;" boredr="0"></object>
</body>
</html> |