Website adaptation for mobile devices: step-by-step instructions. Mobile version of the site

- . ? ? -, , . ? , .

site adaptation for mobile devices




, , . , HTML-, CSS. , . , meta name="viewport". ?

, , meta name="viewport". ? , , . , , . , , , . ? , . , , , , . , . , , , .





?

Mobile version of the site




:

  1. , .
  2. , .
  3. .
  4. .
  5. .

, , - . ( ) - , JavaScript (CSS) . . :

  1. JavaScript.
  2. .
  3. JavaScript.

.

JavaScript

mobile site adaptation




. JavaScript . . - . . , HTML-, <script>. . , . – . , , . , . , .





JavaScript . ? . JavaScript , , . , . . . HTML. , Vary: User-agent. .

JavaScript

plugin to adapt the site to mobile devices




, , , , . . ? Vary: User-agent. , , , . . (<div>), «» . , !

site adaptation for mobile devices




, , :

  1. .
  2. .

, . , . , , . , . - , . , .

check site adaptation for mobile devices




"", . em, . ( ) , . (width) , 1080, 1260 768, . – width: 90%. 80%, 99%, 100%. . , ? : , . , . , – 1260. , 780. . ? , . . , . , , , , , . , , . CSS, , .

,

16 px. , , . ? . :

  1. 16/16 = 1 em.
  2. 18/16 = 1,125 em.

font-size, . , -, , .

. , max-width. , ! . , . , 1260 , , . ? , , , , . if. … . , .

program to adapt the site to mobile devices




, , . , , . , , , , . ? , – . , , .




All Articles