2

我的磁盘中有一个 htm 页面 (C:\pages\page1.htm)。

此页面链接 CSS 和 gif (C:\pages\img\img1.gif, c:\pages\css\css1.css)。

如何生成 MHT 文件?仅使用 C# .NET 托管。

4

3 回答 3

0

MHT is basically a MIME file, which means it's structured very much like an e-mail. There are some global headers at the top (namely, the Content-Type, which also specifies the content boundary). Each file in the archive is separated by the content boundary, and has its own set of headers. See a MHT representation of this page - much of the content is self-explanatory.

于 2009-10-30T13:00:02.610 回答
0

你为什么需要这个?MHT 是仅 IE 存储网页的格式。

但是,如果您打开一个 MHT,您将很快了解如何手动创建它。

于 2009-10-30T12:31:56.160 回答
0

Windows 7 包括录制步骤和生成 mht 文件。

我认为 mht 文件可以有多种用途。我需要生成 mht 文件(一个 mht 文件),用于创建多个 htm 文件、css、jpg、wmv ...

谢谢

于 2009-11-13T13:09:43.110 回答