简体   繁体   English

为什么我的自适应网站在iPhone上没有响应?

[英]Why isn't my responsive website acting responsive on the iphone?

I have a responsive webpage that changes as the screen resolution changes, but for some reason, it loads the non-responsive version whenever I load the page on my iPhone: 我有一个响应式网页,它随着屏幕分辨率的变化而变化,但是由于某种原因,每当我在iPhone上加载页面时,它都会加载非响应式版本:

http://rayku.com/register http://rayku.com/register

The home page is fully responsive on the iPhone ( http://rayku.com/home ), but I'm not sure why the registration page isn't. 主页可以在iPhone( http://rayku.com/home )上完全响应,但是我不确定为什么注册页面没有显示。 Do you have any ideas? 你有什么想法?

您缺少viewport meta标记(正确显示在主页上)。

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

I don't have an iPhone, so I can't test this, but it looks like you're missing a meta tag from your <head> tag. 我没有iPhone,因此无法测试,但看来您缺少<head>标记中的meta标记。 Try adding this: 尝试添加以下内容:

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

Hope this works. 希望这行得通。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM