How to open an html file from inside a zip?

£可爱£侵袭症+ 提交于 2021-02-07 13:39:09

问题


Is there any way to open an html file from within a zip file which contains images the html references? I generate htmls with relative paths to resources and the browser won't find them in the zip file, I have to extract it first. Opening it from the zip would be ideal. Any way to do it?


回答1:


you have to extract it. When you double click on your html in the zip file, it is extracted in the background and shown to you, the only way to read anything in a compressed file is by extracting it.




回答2:


As I know, only Firefox can do this via jar:file://c:/myfolder/myzip.zip!/index.html




回答3:


Your aim is to keep all those thousands htm, gif... files in one container? Considere using ISO file, it won't be compressed but nowedays HDD are big enough... Add an autorun.inf at the root if you like windows opening your CD/DVD. CDburnerXP is a freeware that can do that for you.




回答4:


  1. Falkon must enable the plugin for KDE-integration, that allows browsing a kio-slave with URLs like:

    zip:/home/user/path/to/archive.zip
    info:ls
    fish://benutzername@rechnername
    ...
    
    • https://en.wikipedia.org/wiki/Falkon
    • https://en.wikipedia.org/wiki/KIO
  2. At least Firefox can do the trick for documentation and configuration pages that are packaged inside an addon-xpi-file which is also basically a zip-archive. But I don't know any way of providing an arbitrary zip in the location-bar.

  3. Eclipse can also point it's integrated browser to zipped java-doc.



来源:https://stackoverflow.com/questions/11657446/how-to-open-an-html-file-from-inside-a-zip

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!