HTML5 Mobile Web Development

Source: Internet
Author: User

1. Responsive Web Design

(1). Discussion on media query specifies the device type for the style sheet through the media property

<link rel= "stylesheet" media= "screen" href= "Style.css"/>

CSS3 increases the condition when the device is placed vertically

<link rel= "stylesheet" media= "screen and (orientation:portrait)" href= "Style.css"/>

CSS3 Add the condition that the Style.css style file will be loaded when the device screen is heavy 960px

<link rel= "stylesheet" media= "screen and (orientation:portrait)" href= "Style.css"/>

Reference CSS3 Media query: http://www.w3.org/html/ig/zh/wiki/CSS3 media Query

-Width viewport widths
-Height Viewport Heights
-width of the device-width device screen
-Device-height The height of the device screen
-orientation detection screen in horizontal or vertical screen
-Aspect-ratio width-to-height ratio based on viewport
-Device-aspect-ratio based on the aspect ratio of the device screen
-Number of bits of color, such as whether the min-color:32 match device has 32-bit or more colors
-Number of colors in the Color Index table of the COLOR-INDEX device
-Monochrome detects the number of bits per pixel used in a monochrome oscillator buffer. is non-negative, such as Monochrome:3
-resolution detects the resolution of the screen or printer, such as MIN-RESOLUTION:300DPI (described later in DPI) or a measure of pixels per centimeter, such as MIN-RESOLUTION:120DPCM
-Scan scanning mode with a value of progressive (progressive scan), interlace (interlaced scanning)
-Grid detects whether the output device is a grid device or a bitmap device

When you create a media query, the above features (scan and grid not) can be combined with the Min and Max prefixes to create a range of media queries. Apart from

Data Source:

Http://sc.chinaz.com/info/130410113358.htm

HTML5 Mobile Web Development

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.