Spaces:
Running
Running
Upload pt.html
Browse files
pt.html
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<html>
|
2 |
+
<head>
|
3 |
+
<script src="https://huggingface.co/spaces/changxin/highcharts/raw/main/CLodopfuncs.js"></script>
|
4 |
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
5 |
+
<title>测试CLodop</title>
|
6 |
+
</head>
|
7 |
+
<body>
|
8 |
+
<div id="div1">
|
9 |
+
<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>
|
10 |
+
<td width="66" height="16" style="border:solid 1px black"><font color="#0000FF">A</font><font color="#0000FF">等</font></td>
|
11 |
+
<td width="51" height="16" style="border:solid 1px black"><font color="#0000FF">B</font><font color="#0000FF">等</font></td>
|
12 |
+
<td width="51" height="16" style="border:solid 1px black"><font color="#0000FF">C</font><font color="#0000FF">等</font></td></tr>
|
13 |
+
<tr>
|
14 |
+
<td width="66" height="16" style="border:solid 1px black">A<sub>01</sub></td>
|
15 |
+
<td width="80" height="12" style="border:solid 1px black">中-001</td>
|
16 |
+
<td width="51" height="12" style="border:solid 1px black">C1<sup>x</sup></td>
|
17 |
+
</tr>
|
18 |
+
<tr>
|
19 |
+
<td width="66" height="16" style="border:solid 1px black">A<sub>02</sub>Φ</td>
|
20 |
+
<td width="80" height="16" style="border:solid 1px black">日-スの</td>
|
21 |
+
<td width="51" height="16" style="border:solid 1px black"><font face="Vernada">7㎥</font></td>
|
22 |
+
</tr>
|
23 |
+
<tr><td width="66" height="16" style="border:solid 1px black;overflow:hidden">A<sub>03</sub><nobr>over隐藏后面的:1234567890</nobr>
|
24 |
+
</td><td width="80" height="16" style="border:solid 1px black;overflow:hidden">韩-안녕</td><td width="51" height="16">C3<sup>x</sup>
|
25 |
+
</td></tr> </tbody></table>
|
26 |
+
</div>
|
27 |
+
|
28 |
+
<br>
|
29 |
+
<a href="javascript:fx()">打印预览</a>
|
30 |
+
|
31 |
+
<script language="javascript" type="text/javascript">
|
32 |
+
var strHTML=document.getElementsByTagName("html")[0].innerHTML;
|
33 |
+
var LODOP; //声明为全局变量
|
34 |
+
function fx(){
|
35 |
+
LODOP.PRINT_INITA(1,1,770,660,"测试预览功能");
|
36 |
+
LODOP.ADD_PRINT_TEXT(10,300,300,200,"添加测试表头");
|
37 |
+
LODOP.ADD_PRINT_HTM(30,5,"100%","80%",strHTML);
|
38 |
+
LODOP.PREVIEW();
|
39 |
+
};
|
40 |
+
</script>
|
41 |
+
</body>
|
42 |
+
</html>
|