2013-01-02 6 views
0

Ok, j'ai essayé deux solutions d'ici (forums et jusqu'à présent, rien ne se passe) voici mon code:essayant de redimensionner une iframe

<script> 
<!---tried this without success--> 
$("#mySupport").resizable(); 
alert("Hello! I am an alert box!!"); 
<!--also tried this from the forums--> 
$(document).ready(function(){ 
    $('#mySupport', window.parent.document).height($(document).height()); 
}); 

</script> 
<iframe id="mySupport" width="960" height="900" seamless src="https://enterraglobal.zendesk.com/" scrolling="no"> 



</iframe> 
<!--I don't know probably I'm missing something--> 

Répondre

0
$(document).ready(function(){ 
    $("#mySupport").height("100px"); 
}); 
0

Je pense que vous essayez de définir l'iframe à la même taille que le document externe. Si oui:

$(document).ready(function() 
{ 
    $('#mySupport').height($(document).height()); 
    $('#mySupport').width($(document).width()); 
}); 

jsfiddle

Questions connexes