report.html
4.71 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<head th:include="include :: header"></head>
<title>sn</title>
<!--<link href="css/bootstrap.min.css" rel="stylesheet" />-->
<!--<link href="css/font-awesome.min.css" rel="stylesheet" />-->
<!--<!–[if IE]>-->
<!--<link href="css/font-awesome-ie7.min.css" rel="stylesheet" />-->
<!--<![endif]–>-->
<style type="text/css">
/* 设置背景颜色 字体印刷不清晰
* {
color: #000000!important;
-webkit-tap-highlight-color: #000000!important;
}*/
.table-bordered td, .table-bordered th {
border: 0px;
cellspacing: 0px;
cellpadding: 0px;
/*display: none;*/
}
table, th, td {
border: 1px solid rgba(0, 0, 0, 0); /* 设置透明边框 */
}
.table tbody tr td {
padding: 3px;
text-align: center;
}
/*.vertical-text {*/
/* writing-mode: vertical-rl; !* 文字从上到下,从右到左 *!*/
/* transform: rotate(180deg); !* 可选,使文字正面朝上 *!*/
/*}*/
</style>
</head>
<body id="ddd">
<div class="noprint container" style="text-align:right; /*padding: 20px;*/float: right">
<!-- <span style="padding-left:20px;"><button type="button" onClick="a()"><i-->
<!-- class="fa fa-print"></i> 打印</button></span>-->
<span class="noprint" style="padding-left:250px;"><button type="button" onClick="a()"><i class="fa fa-print"></i> 打印</button></span>
</div>
<div class="container" style=" width:250px;/*height:228px;*/color: #333">
<div class="row">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class=""
th:each="row:${snList}">
<tbody>
<tr style="text-align: center;">
<td>
<img style="width:100%;margin-top: 50px;" th:src="@{'/image/'+${row.code}}">
</td>
<!-- <td style="text-align: center;" class="vertical-text">-->
<!-- <div th:text="${row.code}">-->
<!-- </div>-->
<!-- </td>-->
</tr>
<tr style="text-align: center;">
<td style="">
<div class="word-text" th:text="${row.code}">
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div th:include="include :: footer"></div>
<style type="text/css">
@media print {
.noprint {
display: none;
}
}
.imgclass {
padding-top: 5%;
}
/*.vertical-text {*/
/* word-wrap: break-word;*/
/* writing-mode: vertical-rl; !* 文字从上到下,从右到左 *!*/
/* transform: rotate(180deg); !* 可选,使文字正面朝上 *!*/
/* font-size: 30px;*/
/* text-align: center;*/
/*}*/
.vertical-text {
text-align: center;
writing-mode: vertical-rl; /* 文字从上到下,列从右到左 */
text-orientation: mixed; /* 根据内容自动选择文本方向,可以是垂直也可以是水平 */
word-break: break-all; /* 允许在任意字符间断行,防止单词被拆开 */
transform: rotate(180deg);
font-size: 20px;
}
.word-text {
text-align: center;
word-break: break-all; /* 允许在任意字符间断行,防止单词被拆开 */
font-size: 20px;
}
.container1 {
width: 10px; /* 设置容器宽度 */
border: 1px solid #000; /* 边框用于展示容器边界 */
}
.break-word {
word-wrap: break-word; /* 允许在单词内断行 */
}
/*.col {*/
/* margin: 0 auto;*/
/* font-size: 26px;*/
/* writing-mode: vertical-lr; !*从左向右 从右向左是 writing-mode: vertical-rl;*!*/
/* writing-mode: tb-lr; !*IE浏览器的从左向右 从右向左是 writing-mode: tb-rl;*!*/
/*}*/
</style>
<!--<script type="text/javascript" src="../../../js/jquery-1.4.4.min.js"></script>-->
<!--<script type="text/javascript" src="../../../js/jquery.jqprint-0.3.js"></script>-->
<script type="text/javascript" src="../../../js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../../../js/jquery.jqprint-0.3.js"></script>
<script type="text/javascript">
function a() {
$("#ddd").jqprint();
}
</script>
</body>
</html>