Click here to return to the webpage tutorial HTML section. Click here to view the CSS tutorial. Above: Markup Language-CSS style for Web pages. Chapter 11 describes several methods to apply CSS to documents. This chapter focuses on printing styles and specifies CSS rules for printing pages. as long as there are several CSS rules, click here to return to the HTML tutorial section of the webpage tutorial network. click here to view the CSS tutorial. Above: Markup Language-CSS style for Web pages. Chapter 11 describes several methods to apply CSS to documents. This Chapter focuses on printing styles and specifies the CSS rules used to print pages. as long as there are several CSS rules, click here to return to the script home HTML tutorial section. click here to view the CSS tutorial.
Above:
Markup Language-CSS style for Web Applications. Chapter 11 Print Style
Previously, in Chapter 10th, we discussed several methods to apply CSS to documents. This chapter focuses on printing styles and specifies CSS rules that are particularly used to print pages. with just a few CSS rules, you can make sure that the structured markup content is as good as the display on the screen.
First, let's take a look at the media types and their relationships with CSS related to the provision of devices. How to specify the style used for printing?
Before answering this question, you must be familiar with the concept that we can specify a media type for CSS, and declaring a media type can make styles work for specific media.
For example, if you want to make the style sheet of a link exclusively for the computer screen, you can Add media attributes to the tag:
Media = "screen"Href = "screenstyles.css"/>
The code above ensures that the style linked to this label is only used on the computer screen. Maybe you want to ask: "What media can be used in addition to the computer screen? "The answer is... there are many other options: media type.
In addition to the screen used in this example, there are many media types to choose from. The following are all recognizable media types defined by W3C in the CSS2.1 standard (available at https://www.php1.cn ): all: applies to all devices braille: applies to dot-text tactile feedback device embossed: applies to dot-text page printer handeld: applies to handheld devices (usually with small screens, limited bandwidth) print: applies to paging content, and the documentation projection to view on-screen using print preview mode: For projection presentations, for example, high-shot projectors, see paging content (https://www.php1.cn/)