Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/visual-studio-2010/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 在和iframe内滑动或类似操作_Jquery_Ios_Ipad_Jquery Mobile - Fatal编程技术网

Jquery 在和iframe内滑动或类似操作

Jquery 在和iframe内滑动或类似操作,jquery,ios,ipad,jquery-mobile,Jquery,Ios,Ipad,Jquery Mobile,嗨 希望这是一个简单的问题和一个简单的答案。。。有没有办法用iframe或类似的东西创建一个html文档,它可以加载一个网页,但允许您在页面之间来回滑动?差不多 <html> <head> <meta charset="utf-8"/> <title>Blent</title> <link rel="stylesheet" href="jquery.mobile.pagination.css" /> <script s

希望这是一个简单的问题和一个简单的答案。。。有没有办法用iframe或类似的东西创建一个html文档,它可以加载一个网页,但允许您在页面之间来回滑动?差不多

<html>
<head>
<meta charset="utf-8"/>
<title>Blent</title>
<link rel="stylesheet" href="jquery.mobile.pagination.css" />
<script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js">      </script>
<script src="jquery.mobile.pagination.js"></script>
<!-- Prevent scaling -->
<meta name="viewport" content="user-scalable=no, width=device-width" />
<!-- Eliminate url and button bars if added to home screen -->
<meta name="apple-mobile-web-app-capable" content="yes" />
</head>
<body>
<iframe id=”the-frame” src=”http://google.com”></iframe>
</body>
</html>

所以我有一个带谷歌的iFrame,如果我刷,它会加载,比如Amazon.com,然后如果我刷回去,它会加载谷歌。有什么办法吗?

我想你会违反同一原产地政策。因此,无论是jquery、mootools、vanilla还是其他任何东西,您都无法使用javascript在iframe中执行任何操作

但是,如果您在多个div中创建多个iframe并滑动后者,则可能会出现这种情况