Relatively good print effect CSS

Source: Internet
Author: User

<HTML>
<Head>
<Title> View </title>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<! -- Media = print this attribute can be valid during printing -->
<Style media = print>
. Noprint {display: none ;}
. Pagenext {page-break-after: Always ;}
</Style>

<Style>
. TDP
{
Border-bottom: 1 solid #000000;
Border-left: 1 solid #000000;
Border-Right: 0 solid # ffffff;
Border-top: 0 solid # ffffff;
}
. TABP
{
Border-color: #000000 #000000 #000000 #000000;
Border-style: solid;
Border-top-width: 2px;
Border-right-width: 2px;
Border-bottom-width: 1px;
Border-left-width: 1px;
}
. Noprint {
Font-family: "";
Font-size: 9pt;
}

</Style>

</Head>

<Body>
<Center class = "noprint">
<P>
<Object ID = webbrowser classid = CLSID: 8856f961-340a-11d0-a96b-00c04fd705a2 Height = 0 width = 0>
</Object>
<Input type = button value = print onclick = Document. All. webbrowser. execwb (6, 1)>
<Input type = button value = print onclick = Document. All. webbrowser. execwb (6, 6)>
<Input type = button value = page setting onclick = Document. All. webbrowser. execwb (8, 1)>
</P>
<P> <input type = button value = print preview onclick = Document. All. webbrowser. execwb (7,1)>
<Br/>
</P>
<HR Align = "center" width = "90%" size = "1" noshade>
</Center>

<Table width = "90%" border = "0" align = "center" cellpadding = "2" cellspacing = "0" class = "TABP">
<Tr>
<TD colspan = "3" class = "TDP"> page 1 </TD>
</Tr>
<Tr>
<TD width = "29%" class = "TDP"> </TD>
<TD width = "28%" class = "TDP"> </TD>
<TD width = "43%" class = "TDP"> </TD>
</Tr>
<Tr>
<TD colspan = "3" class = "TDP"> </TD>
</Tr>
<Tr>
<TD colspan = "3" class = "TDP"> <Table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
<Tr>
<TD width = "50%" class = "TDP"> <p> reports like this </P>
<P> general requirements are sufficient. </P> </TD>
<TD> </TD>
</Tr>
</Table> </TD>
</Tr>
</Table>
<HR Align = "center" width = "90%" size = "1" noshade class = "noprint">
<! -- Pagination -->
<Div class = "pagenext"> </div>
<Table width = "90%" border = "0" align = "center" cellpadding = "2" cellspacing = "0" class = "TABP">
<Tr>
<TD class = "TDP"> page 2nd </TD>
</Tr>
<Tr>
<TD class = "TDP"> the page is displayed </TD>
</Tr>
<Tr>
<TD class = "TDP"> </TD>
</Tr>
<Tr>
<TD class = "TDP"> </TD>
</Tr>
<Tr>
<TD class = "TDP"> <Table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
<Tr>
<TD width = "50%" class = "TDP"> <p> reports like this </P>
<P> general requirements are sufficient. </P> </TD>
<TD> </TD>
</Tr>
</Table> </TD>
</Tr>
</Table>
</Body>
</Html>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.