//IE和FF下都可以:
//获取iframe中body元素 及改变他的属性
document.getElementById("iframePContent").contentWindow.document.body.style.border = "none";
//第二个单词要大写
document.getElementById("iframePContent").contentWindow.document.body.style.backgroundColor = "#ffffff";
//从一个Iframe里找到另一个Iframe
function ChangeLineHeight() {
if (document.all) { //IE中
var iframePContent1 = document.parentWindow.parent.document.getElementById("iframePContent");
iframePContent1.height = iframePContent1.contentWindow.document.body.scrollHeight;
//使左侧的最外框的线随右侧的高度自适应
document.parentWindow.parent.document.getElementById('DivAllLeft').style.height = (document.parentWindow.parent.document.getElementById('DivAllRight').offsetHeight - 2) + "px";
}
else {
var iframePContent1 = document.defaultView.parent.document.getElementById("iframePContent");
iframePContent1.height = iframePContent1.contentWindow.document.body.scrollHeight;
//使左侧的最外框的线随右侧的高度自适应
document.defaultView.parent.document.getElementById('DivAllLeft').style.height = (document.defaultView.parent.document.getElementById('DivAllRight').offsetHeight - 2) + "px";
}
}