61,115
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
<style>
#divDetail {
border: solid 1px black;
width: 750px;
height: 520px;
position: absolute;
top: 55px;
z-index: 20;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<div id="divDetail">
<iframe id="ifrdetail" name="ifrdetail" frameborder="0" height="100%" width="100%"></iframe>
</div>
</div>
<script language="javascript">
document.getElementById("ifrdetail").src="tmp1.htm";
</script>
</form>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table cellpadding=0 cellspacing=0 border=1 width=650>
<tr>
<td>fsdgsdsd</td>
<td>
fsdgsdsd</td>
</tr>
<tr>
<td>
fsdgsdsd</td>
<td>
fsdgsdsd</td>
</tr>
<tr>
<td>
fsdgsdsd</td>
<td>
fsdgsdsd</td>
</tr>
</table>
<button onclick="document.focus();window.print()"> Print </button>
</div>
</form>
</body>
</html>
<style>
#divDetail {
border: solid 1px black;
width: 750px;
height: 520px;
position: absolute;
top: 55px;
left: 200px;
z-index: 20;
}
</style>