html中怎样实现打印预览ifrom中的内容 求高人指点 谁解决100全给谁
html中怎样实现打印预览ifrom中的内容
注意::只预览ifrom中的内容
我的代码如下:
table width="100%">
<tr>
<td>
<iframe src="table.html" allowtransparency="true" name="option" id="option" height="610px" width="100%" frameborder="0" scrolling="auto"></iframe>
</td>
</tr>
</table>
</td>
</tr>
</table>
<script language="JavaScript">
function printPreview()
{
document.frames("option").document.wb.ExecWB(7,1);
}
</script>
table.html中
<body oncontextmenu="return false;" topmargin=0 marginheight=0 leftmargin=0 marginwidth=0 style="font-size:12px; overflow-y:auto;background:transparent; ">
<object classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height="0" id="wb" name="wb" width="0"></object>
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#BFBFBF">
我预览的是整个页面了
我现在只要预览ifrom 求高人指点
谁解决100全给谁