JQUERYMobile网站显示宽像PC版本

时间:2011-07-16 22:38:11

标签: jquery jquery-mobile

我将我的jquery包括转换为最新版本,现在我的网站在Android和iphone上都显示为PC网站。

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4/jquery.mobile-1.0a4.min.css" />
<script src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0a4/jquery.mobile-1.0a4.min.js"></script>

<link href="http://code.jquery.com/mobile/latest/jquery.mobile.min.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script src="http://code.jquery.com/mobile/latest/jquery.mobile.min.js"></script>

现任主管

<!DOCTYPE html>
<html>
    <head>
    <title></title>

<link href="http://code.jquery.com/mobile/latest/jquery.mobile.min.css" rel="stylesheet" type="text/css" />
    <script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
    <script src="http://code.jquery.com/mobile/latest/jquery.mobile.min.js"></script>

    </head>

有什么想法吗?

我现在加了<meta content="width=device-width,minimum-scale=1,maximum-scale=1" name="viewport">.并罚款。

2 个答案:

答案 0 :(得分:0)

我补充说。现在好了。

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

答案 1 :(得分:0)

更好的视口价值:

<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=no; target-densityDpi=device-dpi">
相关问题