如何让我的网站缩小到移动设备? [英] How Do I Get My Website To Scale Down To A Mobile Device?

查看:74
本文介绍了如何让我的网站缩小到移动设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谢谢你的解决方案。

推荐答案

我可以看到html文件中声明了2个元标记



1.

< meta name =viewportcontent =width = 720>



2 。

< meta name =viewportcontent =width = device-width; initial-scale = 1.0;>



第一个在头部,第二个在体内。理想情况下,你的第二个应该在head标签中。 Meta标签是正文被忽略,如下面的帖子。



http://stackoverflow.com/questions/1447842/what-happens-if-the-meta-tags-are-present-in-the -document-body [ ^ ]



如果有帮助,请尝试更改。
I can see there are 2 meta tag declared in the html document

1.
<meta name="viewport" content="width=720">

2.
<meta name="viewport" content="width=device-width; initial-scale=1.0;">

first one is in the head and second one is in the body. Ideally your second one should have been in the head tag. Meta tag is body is ignored as per below post.

http://stackoverflow.com/questions/1447842/what-happens-if-the-meta-tags-are-present-in-the-document-body[^]

Try changing if it helps.


您可能需要考虑:

1. jQuery Mobile [ ^ ]

2. 教程 [ ^ ]
You may want to consider:
1. jQuery Mobile[^]
2. Tutorial[^]


这篇关于如何让我的网站缩小到移动设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆