0

i have an iframe and need it ti shrank and grow according to the contents height in the run time

<iframe src='demo-frame.php' >Your browser doesn't support iFrames.</iframe>

any help?

4

1 回答 1

0

Maybe try the following with some jQuery...

$('#iframeID').load(function () {
    $(this).height($(this).contents().height());
    $(this).width($(this).contents().width());
});
于 2012-04-19T15:07:37.003 回答