A
A
Alexander Ivanov2015-04-08 22:35:55
css
Alexander Ivanov, 2015-04-08 22:35:55

Why is responsive layout not working on a phone?

principle of operation:

@media only screen and (max-width: 481px) {
}

@media only screen and (max-width: 769px) {
}

first I connect the usual, then the mobile
<link href="css/style.css" rel="stylesheet" type="text/css">
<link href="css/mob.css" rel="stylesheet" type="text/css">

In the browser everything is fine, but the phone does not respond.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Zachinalov, 2015-04-08
@cimonlebedev

You probably forgot to write

<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question