Case 1: The style is used when a few elements on the page are not printed (not previewed). The details are as follows:
The style is defined as follows:
@ Media print {
. Notprint {
Display: none;
}
}
@ Media screen {
. Notprint {
Display: inline;
Cursor: hand;
}
}
<Head>
<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>
</Head>
<Style>
@ Media print {
. Notprint {
Display: none;
}
}
@ Media screen {
. Notprint {
Display: inline;
Cursor: hand;
}
}
</Style>
<Body>
</Body>
<Script>
Function window. onload (){
Var printareaappsopener.doc ument. all. printArea;
Too many Doc ument. body. innerHTML = printArea. innerHTML;
Window. focus ();
Optional values Doc ument. all. WebBrowser. ExecWB );
Window. close ();
}
</Script>