有一個框架:我如何幀的高度從另一個幀改變框架使用JavaScript
<frameset rows="30px,*">
<frame id="frame1" src="frame1source.html">
<frame id="frame2" src="frame2source.html">
</frameset>
我需要能夠從#幀1中使用jQuery更改#幀2的高度。
我試過很多解決方案都無濟於事,包括:
$(window.parent.frames[0].document).css("height",300);
不,這沒有奏效。 – lilbiscuit 2013-04-23 22:42:22
我正在使用[此解決方案](http://stackoverflow.com/questions/11381576/animating-frame-resizing)。但這也起作用:'parent.document.getElementsByTagName('frameset')[0] .rows =「300,*」;' – lilbiscuit 2013-04-24 00:07:53