File size: 2,074 Bytes
5c3bf39
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<html>
<head>
  <script src="https://huggingface.co/spaces/changxin/highcharts/raw/main/CLodopfuncs.js"></script>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>测试CLodop</title>
</head>
<body>
<div id="div1">
<table id="d666" 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>