0

好的,我从这里尝试了两种解决方案(论坛,到目前为止还没有发生任何事情)这是我的代码:

<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-->
4

2 回答 2

0
$(document).ready(function(){
    $("#mySupport").height("100px");
});
于 2013-01-02T17:55:40.590 回答
0

我认为您正在尝试将 iframe 设置为与外部文档相同的大小。如果是这样:

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

jsfiddle

于 2013-01-02T17:58:08.823 回答