document.frames['news2'].document.body.scrollHeight) document.all.news1.height=document.frames['news1'].document.body.scrollHeight;if(document.frames['news1'].document.body.scrollHeight<=document.frames['news2'].document.body.scrollHeight) document.all.news1.height=document.frames['news2'].document.body.scrollHeight;" src="https://www.0133.cn" width="100%">document.frames['news2'].document.body.scrollHeight) document.all.news2.height=document.frames['news1'].document.body.scrollHeight;if(document.frames['news1'].document.body.scrollHeight<=document.frames['news2'].document.body.scrollHeight) document.all.news2.height=document.frames['news2'].document.body.scrollHeight;" src="https://www.0133.cn/index_1.htm" width="100%">jb51提醒啊,多浏览期兼容需要注意些地方,不要用document.all用兼容好的, 以上就是使两个iframe的高度与内容自适应,且相等的详细内容,更多请关注0133技术站其它相关文章!