在一个文件中的图像IE6下无PHP [英] Images in one file under IE6 WITHOUT php

查看:113
本文介绍了在一个文件中的图像IE6下无PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要建立在它所有的图像和CSS页面,所以这将是唯一的一个文件。

I need to create a page with all images and CSS in it, so it would be only one file.

我知道有类似的MHT(IE Web归档文件),但有问题。它仅在IE和Opera,而不是在FF。我需要我的网页在所有的IE(6+),Opera和FF合作。我知道有一种方法可以连接code我的图片用base64,我也知道,IE 6和7不支持数据的URL。我见过院长爱德华的伎俩IE 6和7 但只使用PHP的支持工作。我不能用PHP,所以这不是为我工作。

I know that there is something like MHT (IE web archive), BUT there is problem. It works only in IE and Opera, not in FF. And i need my page to be working in all IEs (6+), Opera and FF. I know there is a way to encode my images in base64 and I also know, that IE 6 and 7 does not support data URLs. I've seen Dean Edward's trick for IE 6 and 7 but it works only with PHP support. And I can't use PHP, so this isn't working for me.

那么,有没有什么办法来建立这种页?请不要给我答案,像今天谁使用IE6或安装镀铬边框。我知道这一切,但我需要它被这种方式工作。

So, is there any way to create this kind of page? Please don't give me answers like "who is using IE6 today" or "install chrome frame". I know all this, but I need it to be working this way.

感谢您的回答!

推荐答案

有没有跨浏览器的方式,所有的资源整合到一个HTML文件。

There is no cross-browser way to integrate all resources into one HTML file.

您最好的选择可能是服务于IE浏览器.mht文件,另一个是数据:的URI火狐等人

Your best bet is probably to serve a .MHT file for IE, and one with data: URIs for Firefox et al.

在某些情况下,一个可行的妥协可能是服务包含的所有资源的ZIP文件,使用相对URL引用。用户仅将它解开,并且可以在本地查看。

In some situations, a viable compromise may be serving a ZIP file that contains all resources, referenced using relative URLs. The user just has to unpack it, and can view it locally.

这篇关于在一个文件中的图像IE6下无PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆