如何简单地使用清单?

时间:2018-01-14 14:08:50

标签: javascript html5 service-worker progressive-web-apps

如何以这种方式使用清单,以便我离线并重新加载页面。图像仍然加载。这是我的https://jsfiddle.net/h67v5kxf/

和代码 HTML

<img src="https://pbs.twimg.com/profile_images/1811310904/logo100x100_SM_twitter_400x400.jpg">
<img src="https://pbs.twimg.com/profile_images/1811310904/logo100x100_SM_twitter_400x400.jpg">

<img src="https://pbs.twimg.com/profile_images/1811310904/logo100x100_SM_twitter_400x400.jpg">

<img src="https://pbs.twimg.com/profile_images/1811310904/logo100x100_SM_twitter_400x400.jpg">

和CSS

img {
height: 100px;
width:100px;

1 个答案:

答案 0 :(得分:0)

使用服务工作者。开始阅读有关渐进式网络应用here

的内容