Today, when I opened the Google website, I suddenly found the following interface, which surprised me!
First reaction: Is Google hacked?
Second reaction: instant screen capture...
Click the image in the above interface and the following interface is displayed...
Google searches for "Louis Braille birthdate" by default"
After Google's Chinese content, find the following materials:
Louis BrailleLouis
The name chosen as the CSS media type reflects the target device for the meaning of the attribute. In the following list of CSS media types, the name of the media type is canonical, but the description is informational. Similarly, the "Media" field in the description of each attribute is also information.
All (All)
Applies to all devices.
Braille (Braille)
: background-(/attachment (set background fixed or scroll with the document, fixed or scroll)/color/image/position/repeat (set whether repeat and how to repeat))27. Set Text style: Text-decoration (marker type: blink (blinking)/line-through (dash)/none/overline (dash)/underline (underscore))/align (alignment: Center/justify (justify)/left/right)28, the document to avoid the use of B (bold) elements, you should use CSS to achieve this effect, with font-weight (: Bold/bolder/lighter/normal/[num] (
Letters-Others
Lt Title Case letter-heading capital letters
Lu Upper Case Letter-uppercase letters
M Mark-Tag
Mc Spacing Mark-Space mark
Me Enclosing mark-Wrapping tag
Mn Non-spacing mark-Non-space mark
N Number-Digital
Nd Decimal number-decimal digit
Nl Letter number-alphanumeric
No Other number-Additional numbers
P Punctuation-Punctuation
Pc Connector punctuation
Screen
Computer monitor
Print
Print paper or Print preview view
Handheld
Portable Devices
Tv
Devices of the type of TV
Speech
Voice and audio synthesizer
Braille
Braille Tactile feedback equipment for the blind
Embossed
Braille Printer
Proj
.
@media rules
@media rules give you the ability to use different style rules for different media in the same style sheet.
The style in the following example tells the browser to display a 14-pixel Verdana font on the monitor. But if the page needs to be printed, the 10-pixel times font will be used. Note: The font-weight is set to bold, whether the monitor or the paper media:
Copy Code code as follows:
Different types of media
Note: The media type name is not case sen
important parts, the first is the media type and the second is the media feature. Let's take a look at these two sections in a nutshell:Media typeMedia type is a common attribute in CSS2 and is a useful property that allows you to specify different styles for different devices through the media type.In the CSS2 often encountered is all (full), screen, print (page printing or print preview mode), in fact, the media type far more than the three kinds, the world's total list of 10 media types. As
general form of media queries Is:{ rules}Consists of four basic components:
Media type: specific target device type
Medium Expression: Test Whether a feature is true
Logic keywords: You can use keywords (such as and, or, not, only) to create more complex expressions
Rule: adjust the basic style of the display effect
1) Medium Type:Each media type tells the user that the agent (for example, the browser) is loading a particular style sheet. For example, If you know th
[Email protected] rules1.1 Media Type:all: match all devices;handle: Matching handheld devices (small screen, monochrome, limited bandwidth);Print: matches the screen in paged media or print preview mode;Screen : matching Color computer screens;Other media types are Braille(Braille tactile feedback device),embossed(Braille paging printer),projection(projector),sp
follows:At this time The media type associated with media is the CSS property media type, which is used to directly introduce the properties of the medium. The syntax format is as follows: @media screen | Print | Projection | Braille | Aural | TV | Handheld | All parameter Description screen: refers to computer screens. Print: An opaque medium used for a printer. Projection: Refers to the item that is used for display.
Web page Production WEBJX article introduction: media type and media query.
Media type is a very useful property in CSS 2, and media type allows us to specify a specific style for different devices to enable a richer interface. Media query is an enhancement to media type and is one of the key elements of CSS 3. With the development of mobile Internet, media query began to receive attention.
Media Type
Let's take a look at media type, which is a bit more familiar to you, and the medi
bold, whether the monitor or the paper media:
Different types of media
Note: The media type name is not case sensitive.
browser support :IE: Internet Explorer, F: Firefox, N: Netscape.
The number of the "CSS1" column shows the CSS standard definition of the attribute background (or CSS2).
type of media
Description
All
Used in all media equipment.
Aural
For speech and audio synthesizer.
Braille
browser behavior changes more than the scroll bar, and the interaction event is not the same as the normal desktop.Second, Media queries propertiesIn Css2, the media type property, which is used to determine the medium types.In CSS3, the media query property is added to enhance the media type property. The media query property is enhanced with the media Type property (media query is an enhanced version of CSS3 for media type) so that media type can make conditional judgments about the output of
Recently, I wrote some things that need to provide the Web page printing function. Therefore, this section describes how to use IE6 to support the printing function. The security settings and support for different browsers are different. If not, use your browser's built-in printing function (or manually enable ActiveX control ). If your writing is insufficient or you cannot clearly describe it, please correct it. ^-^
CSS style printing is a frequently used printing method, which can be used
any styleEnables the ability to hide media queries from an earlier browser
Media types and media features
Media type
The media type of keywords although many, but most of them are discarded (who use AH)Commonly used is all, screen, and then print
Media Type
Description
All
All media devices
Screen
Color screen: computer, tablet, smart machine.
Print
Printer, print preview
Speech
occurred device: Screen reader.
Media Type 1.all All media 2.braille Braille haptic devices 3.embossed Braille printers 4.print handheld device 5.projection print preview 6.screen color display device 7.speech ' auditory ' similar media type nbsp 8.tty device not applicable to pixels 9.tv TV Media properties 1. ( MAX-WIDTH:599PX) 2. ( min-width:600px) 3.
AvD"/ios simulator/chrome) Chrome is the most common
Media type (@media media type, keyword (and only), media characteristics (width/height width). device-width/device-height device width high. Orientation: Landscape horizontal screen. orientation:portrait vertical screen) {style code}) *css3*
All devices
Braille Braille Execution Feedback Equipment
Embo
One. Browser prefixe{ -moz-name:value; /* Firefox */ -ms-name:value; /* IE */ -o-name:value; /* Opera */ -webkit-name:value; /* WebKit */ Name:value; /* adapt to future standard way */}Two. Media Enquiry 1.3 Ways to use media queries
Head section
First line of CSS file@import url ("CSS.CSS") mediatype and (expr);
Style rule interior@media mediatype and (expr) {/ * styles */}
Value of 2.mediaTypeOnly all (meaningless, not plus)
(that is, 480 size parallel to the ground) of the handheld device placed , the screen is large or equal to 480px less than 1024px, and vertical placement of the device's CSS style. As can be seen from the above example, the character putting is concatenated with a space, the selection condition is enclosed in parentheses, and the style code is a compatible set of style sheets, enclosed in brackets. Only (limited to a certain device, can be omitted), and (logical AND), not (excluding a certain d
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.