03.
<head>
04.
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
05.
06.
<style type=
"text/css"
>
07.
08.
#printable { display: none; }
09.
.table tr td{
10.
font-family:Tahoma, Geneva, sans-serif;
11.
font-size: 16px;
12.
line-height:1.3em;
13.
14.
15.
text-rendering: optimizeLegibility !important;
16.
-webkit-font-smoothing: antialiased !important;
17.
}
18.
@media print
19.
{ #non-printable { display: none; }
20.
#printable {
21.
display: inherit;
22.
font-family:Tahoma, Geneva, sans-serif;
23.
font-size: 16px;
24.
line-height:1.3em;
25.
26.
27.
text-rendering: optimizeLegibility !important;
28.
-webkit-font-smoothing: antialiased !important; }
29.
30.
}
31.
</style>
32.
</head>
33.
34.
<body>
35.
<div id=
"non-printable"
>
36.
</div>
37.
38.
<div id=
"printable"
>
39.
<table border=
"0"
width=
"100%"
cellspacing=
"0"
cellpadding=
"0"
class
=
"table"
>
40.
<tr>
41.
<th colspan=
"2"
><h1>ทดสอบ Auto print</h1></th>
42.
</tr>
43.
</table>
44.
45.
</div>
46.
<script> window.print(); </script>
47.
</body>
48.
</html>