|
<html> |
|
<head> |
|
<script src="CLodopfuncs.js"></script> |
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
<title>测试CLodop</title> |
|
</head> |
|
<body> |
|
<div id="div1"> |
|
<table border="1" width="300" height="106" cellspacing="0" bgcolor="#CCFFFF" style="border-collapse:collapse;table-layout:fixed;border:solid 1px black;"><tbody><tr> |
|
<td width="66" height="16" style="border:solid 1px black"><font color="#0000FF">A</font><font color="#0000FF">等</font></td> |
|
<td width="51" height="16" style="border:solid 1px black"><font color="#0000FF">B</font><font color="#0000FF">等</font></td> |
|
<td width="51" height="16" style="border:solid 1px black"><font color="#0000FF">C</font><font color="#0000FF">等</font></td></tr> |
|
<tr> |
|
<td width="66" height="16" style="border:solid 1px black">A<sub>01</sub></td> |
|
<td width="80" height="12" style="border:solid 1px black">中-001</td> |
|
<td width="51" height="12" style="border:solid 1px black">C1<sup>x</sup></td> |
|
</tr> |
|
<tr> |
|
<td width="66" height="16" style="border:solid 1px black">A<sub>02</sub>Φ</td> |
|
<td width="80" height="16" style="border:solid 1px black">日-スの</td> |
|
<td width="51" height="16" style="border:solid 1px black"><font face="Vernada">7㎥</font></td> |
|
</tr> |
|
<tr><td width="66" height="16" style="border:solid 1px black;overflow:hidden">A<sub>03</sub><nobr>over隐藏后面的:1234567890</nobr> |
|
</td><td width="80" height="16" style="border:solid 1px black;overflow:hidden">韩-안녕</td><td width="51" height="16">C3<sup>x</sup> |
|
</td></tr> </tbody></table> |
|
</div> |
|
|
|
<br> |
|
<a href="javascript:fx()">打印预览</a> |
|
|
|
<script language="javascript" type="text/javascript"> |
|
var strHTML=document.getElementsByTagName("html")[0].innerHTML; |
|
var LODOP; |
|
function fx(){ |
|
LODOP.PRINT_INITA(1,1,770,660,"测试预览功能"); |
|
LODOP.ADD_PRINT_TEXT(10,300,300,200,"添加测试表头"); |
|
LODOP.ADD_PRINT_HTM(30,5,"100%","80%",strHTML); |
|
LODOP.PREVIEW(); |
|
}; |
|
</script> |
|
</body> |
|
</html> |