Responsive web Design

Source: Internet
Author: User

All about media: Css2 and CSS3

Http://www.360doc.com/content/14/0704/06/10734150_391862769.shtml

Site brocade Using Media queries

http://mediaqueri.es/

Mu class net

Viewport represents the viewable area, usually, if the content in the viewport is not set by the Apple phone, our width:980px will be reduced by one and then look normal.

But if the width of the width:320, it will be reduced by one times, than it is difficult to see.

If the content here is set to the width of the device, and the multiple of the zoom is set to 1 (1 means no scaling), it's ready.

==============================

==============================

=============================

Dpi:dots per inch

Aspect-ratio the visible window aspect ratio. The minimum and maximum aspect ratios are also supported.

Device-aspect-ratio device's aspect ratio (including browser information, etc.). )

Orientation

Transverse (landscape) and Vertical (portrait)

@media (Orientation:landscape) {
body{
Backgound: #27ae60;
}
}


@media (max-height:480px)
@media (max-device-height:480px)

@media screen and (max-resolution:150dpi) {}

@media screen and (-webkit-device-pixel-ratio:1) {
}

@media screen and (Resolution:1 dppx) {
}

@media screen and (min-width:480px) and (max-width:767px) {}

@media not-screen and (max-resolution:150dpi) {}//calculates the condition behind, and then calculates not.

Responsive layout-device pixel density test

Http://www.gbtags.com/gb/share/5307.htm

http://www.zhangxinxu.com/wordpress/2012/08/window-devicepixelratio/

When the large size, write dead high width, when the small size of the time,% of the fixed width.

When it is less than 767, 100%; remove the float first.

=================================

=================================

=================================

: hover replaced by: Targer Pseudo class.

Responsive web Design

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.