3

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

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

我将包括相关的源文件。

索引.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>

例子.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:
4

1 回答 1

0

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

于 2011-08-25T05:24:14.537 回答