我可以让jquery mobile在没有html标签中的ui mobile类的情况下工作吗



我认为将这个类添加到html标签会导致这个标签无法正常工作。

<meta http-equiv="X-UA-Compatible" content="IE=edge">

我已经按照我所说的工作了,基本上,如果你想使用Jquery Mobile和internet explorer"edge"元标签,确保它工作的最好方法是通过PHP发送标题,并包括没有标题的html文件,你可以在正文中添加样式和脚本。这是我的代码:

<?php 
    header( 'X-UA-Compatible: IE=edge,chrome=1' ); 
    header( 'content: width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' );
    include('ix.html');
?>

请尝试以下操作:<meta name="viewport" content="width=device-width, initial-scale=1">

我在网上找到的一些例子表明,他们把第二个元元素放在了视图端口之后

<!DOCTYPE html> <html> <head> <title>Starter page</title> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" /> <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script> <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script> </head>

http://www.appliness.com/getting-started-with-html-mobile-application-development-using-jquery-mobile-requirejs-and-backbonejs/

http://www.1stwebdesigner.com/css/jquery-mobile-need-to-know/

更改页面元:jquerymobile一个具有不同元视口设置的页面

最新更新