Media attributes of style sheets from print css

Source: Internet
Author: User

At ordinary times, the Helper's home (www.bkjia.com) Tutorial intended that many mature websystems would carry a style sheet named print.css. I don't know its function. I will study it today and make some conclusions.

OriginalPrint.css defines styles for printer devices.You can define print css in the following ways:

Reference content is as follows:
<Link rel = "stylesheet" href = "/Themes/canbeing/style/print.css" type = "text/css" media = "print"/>
@ Import url ("print.css") screen;
@ Media print {body {font-size: 12px ;}}
<Style media = "print"> body {font-size: 12px ;}</style>

Actually Print is a media attribute of stylesheet.There are eight types of media attributes in the style sheet:

AllUsed for all output devices
BrailleBraille tactile feedback device
EmbossedUsed for paging Braille printer
HandheldIntended for handheld devices (usually small screens with limited bandwidth)
PrintUsed for printer preview and Printing
ProjectionUsed for Projector
Screen(Default) used for color computer screens
SpeechUsed for speech synthesizer. CSS2 also has a similar media type (aural)
TtyIt is intended to be used in character grid media with fixed widths (such as telex typewriters, docks, or portable devices with limited display capabilities.
TVFor TV devices (low resolution, color, limited scrolling screen, audio available)

It seems that there are still a lot of details to be aware of when you want to build a high-availability website.

Reference: http://www.w3.org/TR/CSS2/media.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.