.
@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
[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
:
type
explain
All
All devices
Braille
Braille
Embossed
Braille Printing
Handheld
Handheld devices
Print
Document printing or Print preview mode
Projection
Project demonstrations, such as slides
Screen
The polka dot effect is a pattern made up of large and small solid dots, from a distance, like the color gradually and the background into the shadow. The design was first used in newspapers in 19th century to show shades of gray and then become popular. Now polka dots are often used in outdoor advertising, t-shirts, stickers, posters and other design, this design element will make full use of a small amoun
$" and it is the same problem, because the deletion of a character from $a$ to match $b$, is equivalent to inserting a character in $b$ to match $a$, the two operations can be converted to each other.assuming that the character sequence $a[1\dots i]$, $B [1\dots j]$ are string $a$, $B $ of the former $i$, $j $ Characters of the substring, we get a sub-problem that is "modified from string $a[1\
, the production of dots effect
(1) Execute the "filter \ Warp \ Polar coordinates" menu command, pop-up "Polar coordinates" dialog box, select "Plane coordinates to polar coordinates" as shown in Figure 12.
Figure 12 performing the filter \ Warp \ Polar coordinates menu command
(2) Drag "Layer 1" to "Create new Layer" button, copy "Layer 1 copy", perform "edit \ Free Transform" menu command, resize and position, press ENTER to perform operation,
Automatic Switch
HTML
First, prepare the HTML structure. Use # hwslider to wrap the entire sliding area, including the slider content. Use ul li to organize the content. The slider content can be any HTML content such as images and text. # Dots refers to the dot switching navigation, which consists of multiple small dots and corresponds to the number of slide, which is generally located below the sliding a
solve the above compatibility issues.To run the previous app, introduce a new concept point (dot). The point concept is important in iOS development, not the developer's attention. The IPhone 4 screen size continues to be x 480, but the units are not pixels but dots.In the iphone 3GS, 1 dots equals 1 pixels. In other words, dots and pixels can be exchanged directly.In iphone 4, 1
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.