我的磁盘中有一个 htm 页面 (C:\pages\page1.htm)。
此页面链接 CSS 和 gif (C:\pages\img\img1.gif, c:\pages\css\css1.css)。
如何生成 MHT 文件?仅使用 C# .NET 托管。
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.
你为什么需要这个?MHT 是仅 IE 存储网页的格式。
但是,如果您打开一个 MHT,您将很快了解如何手动创建它。
Windows 7 包括录制步骤和生成 mht 文件。
我认为 mht 文件可以有多种用途。我需要生成 mht 文件(一个 mht 文件),用于创建多个 htm 文件、css、jpg、wmv ...
谢谢