问题
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:
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
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.
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