The responsive iOS width does not match.

Asked 2 years ago, Updated 2 years ago, 59 views

I made a responsive web page, but only the iPhone somehow has a horizontal width and scrolls horizontally.Images are also visible (from the left).
Even if width is designated as 100% in CSS, there will always be a gap on the right of 20% and it will be scrolled.
Please let me know if there is a solution.

viewport is specified.

<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scale=no"/>

ios html css

2022-09-30 19:51

1 Answers

Do you specify the viewport as follows?
Without this, I can't pick up the width of the browser width of the browser.Please add this meta tag to the header.

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


2022-09-30 19:51

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.