Css layout responsive layout description

1. Concept:  write a css styles can fit multiple terminals simultaneously, in order to solve the mobile Internet is born.

2. Role:  the face of strong different resolution devices the flexibility to adapt quickly to solve the problem of multiple devices display

3. Principle

    Media Inquiries

     ① Outreach Media Query Syntax

   When the screen form greater than or equal 960px, documents incorporated red.css

When the screen window is smaller than 960px, documents incorporated blue.css

  ② embedded media queries

    grammar:

 When the screen form greater than and less than 640px 960px, body red background

 

 Recommended front-end blog: http://www.sharedblog.cn/?sort=5&page=5

Guess you like

Origin www.cnblogs.com/captainMforlife/p/11301712.html