Preview the solution when you print a section of the page.

Source: Internet
Author: User

Case one: The solution to a situation where a small number of elements on a page are not printed (not previewed) is to use style, as follows:
Define the following style:
@media Print {
. notprint {
Display:none;
}
}

@media Screen {
. notprint {
Display:inline;
Cursor:hand;
}
}

<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<object id=webbrowser classid=clsid:8856f961-340a-11d0-a96b-00c04fd705a2 height=0 width=0></OBJECT>
<style>
@media Print {
. notprint {
Display:none;
}
}

@media Screen {
   notprint {
    display:inline
    cursor: Hand
    }
}
</style>
<body>
</body>
<script>
Function window.onload () {
 var Printarea=opener.document.all.printarea;
 window.document.body.innerHTML=printArea.innerHTML;
 window.focus ();
&NBSP;WINDOW.DOCUMENT.ALL.WEBBROWSER.EXECWB (7,1);
 window.close ();
}
</script>

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.