iframe设置宽与高
<iframe width="100%" align="center" height="200" id="frame" name="frame" frameborder="0" scrolling="no" onload="Javascript:SetWinHeight(this)"></iframe>
function SetWinHeight(obj) {
var win = obj;
if (document.getElementById) {
if (win && !window.opera) {
if (win.contentDocument && win.contentDocument.body.offsetHeight)
win.height = win.contentDocument.body.offsetHeight;
else if (win.Document && win.Document.body.scrollHeight)
win.height = win.Document.body.scrollHeight;
}
}
}