The printed code is as follows. You must note the security settings of IE during use.
<% @ Page language = "java" import = "java. util. *" pageEncoding = "gbk" %>
<Html>
<Head>
<Style>
. Tb_lt {text-indent: 3; line-height: 120%; border-left: 1 solid #000000; border-top: 1 solid #000000}
. Td_rb {text-indent: 3; line-height: 120%; border-right: 1 solid #000000; border-bottom: 1 solid #000000}
</Style>
<! -- Valid when printing --> <! -- Do not display when printing --> <! -- Subsequent content form -->
<Style media = print>
. Noprint {display: none ;}
. PageNext {page-break-after: always ;}
</Style>
</Head>
<Body>
<Object id = "objPrint" width = 0 height = 0 classid = "CLSID: 8856F961-340A-11D0-A96B-00C04FD705A2"> </object>
<Div class = "Noprint">
<Table width = 600 class = 'Table _ control' border = 0 cellspacing = "1" cellpadding = "0" align = center>
<Tr>
<Td width = "43"> </td>
<Td align = "right">
& nbsp;
& nbsp;
& nbsp;
</Td>
</Tr>
<Tr>
<Td width = "43" height = "6"> </td>
<Td width = "384" height = "6"> </td>
</Tr>
</Table>
</Div>
<Font color = "red" size = "5"> test and print </font>
<Div class = "Noprint">
<Table width = 600 class = 'Table _ control' border = 0 cellspacing = "1" cellpadding = "0" align = center>
& L
<