时间: 2021-07-31 作者:daque
<html><head><title>untitled document</title><meta http-equiv="content-type" content="text/html; charset=utf8"><style>.tdp{ border-bottom: 1 solid #000000; border-left: 1 solid #000000; border-right: 0 solid #ffffff; border-top: 0 solid #ffffff;}.tabp{ border-color: #000000 #000000 #000000 #000000; border-style: solid; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 1px; border-left-width: 1px;}</style></head><body onbeforeprint="printsub.style.display='none';" onafterprint="printsub.style.display='';"><center><input type=button name="printsub" value=" 打字与印刷 " onclick="self.print();"><br></center><table width="90%" border="0" align="center" cellpadding="2" cellspacing="0" class="tabp"> <tr align="center"> <td height="25" colspan="3" class="tdp"><strong>计划机寰球开拓者俱乐部</strong></td> </tr> <tr> <td width="31%" height="26" align="center" class="tdp">php版</td> <td width="34%" align="center" class="tdp">delphi版</td> <td width="35%" align="center" class="tdp">java版</td> </tr> <tr> <td height="40" colspan="3" class="tdp"><p>一段很小但很适用的css打字与印刷款式。普遍带后台的表格在打字与印刷的功夫,页面上看到的格线本质却打字与印刷不出来。本来不是打字与印刷不出来,是须要在打字与印刷的功夫采用"打字与印刷后台"。1般不大概诉求用户必需做这步。但用款式表"画"出来的格线在打字与印刷的功夫就能获得"所见即所打"的功效。这功效固然不许和专科的打字与印刷控件如"水晶报表"想比,但满意普遍的需要仍旧不妨独当一面的。</p></td> </tr> <tr> <td height="59" colspan="3" class="tdp">但在打字与印刷的功夫,"打字与印刷"按纽不许被打字与印刷出来,以是就在<body>里用两个事变来遏制它,这步很要害。</td> </tr> <tr> <td height="59" colspan="3" class="tdp">在运用这两个款式时,1个是让<table>的class="tabp",而后再它底下的每个<td>的class="tdp",<tr>不须要指定。记取,每个<td>都要指定一下。。。。</td> </tr> <tr> <td height="59" colspan="3" class="tdp">打字与印刷功效如图:(打字与印刷出的东东不囊括菜单,惟有底下的实质):</td> </tr></table></body></html> (根源:viphot)