【问题标题】:Application manifest working on android, iPhone, firefox, opera, but not on iPad应用程序清单适用于 android、iPhone、firefox、opera,但不适用于 iPad
【发布时间】:2011-05-18 21:17:07
【问题描述】:

我无法让一个真正简单的 html5 缓存清单在 iPad 上运行。 但它确实适用于我测试过的所有其他设备和浏览器。

iPad safari 实施中是否有任何错误或 iPad 的其他限制,或者我遗漏了什么?

我将包含相关的源文件。

index.html

<!DOCTYPE HTML>
<html manifest="example.appcache">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Hello</title>
    <link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
    <h1>Hello World!</h1>
</body>
</html>

example.manifest

CACHE MANIFEST
# 2010-06-18:v2

# Explicitly cached 'master entries'.
CACHE:
index.html
style.css

# Resources that require the user to be online.
NETWORK:

【问题讨论】:

  • 您遇到的实际问题是什么?

标签: ipad html offlineapps offline-caching manifest.cache


【解决方案1】:

我已经读到,在 iPad 上,清单文件必须命名为“cache.manifest”,并且您必须将其指定为相对路径,例如 &lt;html manifest="cache.manifest"&gt;not 类似 &lt;html manifest="/foo/bar/cache.manifest"&gt;。所以,如果它在其他所有东西上都可以工作,但在 iPad 上不行,请检查/尝试这两件事。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-03-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-16
    相关资源
    最近更新 更多