With the lodop printing control, you can easily make powerful functions.
Control download: http://mtsoftware.v053.gokao.net/download.html
<% @ Page Language = "Java" Import = "Java. util. *" pageencoding = "UTF-8" %> <! Doctype HTML public "-// W3C // dtd html 4.01 transitional // en"> <HTML>
Media attributes
Media attributes of HTML <link> tags
HTML <link> tag
Definition and usage
The media attribute specifies the device on which the linked document will be displayed.
The media attribute specifies different styles for different media types.
Instance
Two different style sheets for two different media types (computer screen and print ):
Media attributes of HTML <style> labels
HTML <style> label
Definition and usage
The media attribute specifies different styles for different media types.
Tip: to define more than one media type in a style element, use a comma-separated list (for example, <style type = "text/CSS" Media = "screen, projection "> ).
Instance
Two different styles (computer screen and print) for two different media types ):