当您使用 Microsoft 的 Internet Explorer 浏览网页(browsing the web using Microsoft’s Internet Explorer)时,如果您找到想要保留以供以后使用的资源,您可以为标签添加书签(bookmark the tab)或保存网页(save the web page)。
默认情况下,Internet Explorer将网页保存为MHT(多用途 Internet 邮件扩展 HTML(Multipurpose Internet Mail Extension HTML))文件扩展名。
如果您尝试在运行Windows 7/Server 2012 R2/10的 PC 上打开MHT文件,它将尝试使用Internet Explorer加载文件,而不管您的默认浏览器是什么。这是因为Internet Explorer随 Windows 的每个消费者版本(consumer version of Windows)一起提供,尽管可以选择将具有企业或教育许可证的用户排除在其中。
本指南介绍了MHT文件的工作原理以及如何在计算机上打开它。
什么是 MHT 文件?(What Is an MHT File?)
MHT文件扩展名是一种网页存档格式,可将 Web HTML代码(HTML)和资源(如图像、flash 动画(flash animations)、小程序和音频文件)保存在单个文件中。当您离线工作并想要访问文件时,这尤其有用。
您可以使用不同的应用程序或在某些 Internet 浏览器(如Internet Explorer )中创建MHT文件。如果您使用的是Firefox、Opera或Safari浏览器,您可能需要扩展、加载项或更改浏览器设置才能写入MHT文件。
但是,创建和使用MHT(MHT)文件没有特定的标准,因为许多应用程序显示和保存文件的方式不同。这意味着如果您使用特定浏览器创建MHT文件,则该文件可能会或可能不会在其他浏览器上正确显示。(MHT)
如果您要保存网页以使用文件中的图像,如果在线图像被移动、重命名或删除,您可能无法执行此操作。这是因为MHT文件不保存图像。他们只保存指向在线图像的链接。
另外,如果MHT文件中的图像被修改,当您尝试在其他浏览器中打开文件时,您将看不到它们。
MHT文件与HTML文件的不同之处在于,MHT文件将图像文件和其他相关媒体资源保存在单个文件中,而HTML仅保存页面的文本内容。您在HTML(HTML)文件中看到的任何图像都是对本地或在线图像的引用,这些图像将在加载HTML文件时加载。
使用MHT文件,您仍然可以查看页面和其他文件,无论这些文件是否仍然在线存在。这是因为这些文件离线存储在一个可访问的文件中,任何指向外部文件的相关链接都会在创建过程中重新映射并指向MHT文件中包含的链接。(MHT)
如何打开 MHT 文件(How to Open an MHT File)
如果您需要在您的 PC 或其他存储空间中移动文件,您可以轻松地移动您保存为MHT(MHT)格式的单个文件的任何网页。这为您节省了在保存网页时创建额外文件夹的麻烦,并且您可以在离线时访问文件。
除了Internet Explorer(Internet Explorer)和其他主要浏览器之外,还有几个程序可以读取MHT文件。您可以使用Microsoft Word编写和读取MHT文件,但也可以使用WPS Writer或 PC 上可以读取它的任何其他程序。
注意(Note):Microsoft Word支持MHT文件格式,但如果文件中的超链接损坏或损坏,它不会打开文件。
要使用不同的程序读取MHT文件,请右键单击该文件,选择打开(Open)方式并从列表中选择所需的程序。
其他可以打开MHT文件的程序包括HTML编辑器,如BlockNote或WizHtmlEditor或文本编辑器。或者,您可以在Internet Explorer(Internet Explorer)中打开MHT文件并将其保存为HTML或TXT格式。
您还可以使用MHTML Converter、Doxillion Document Converter或CoolUtils.com等程序将(CoolUtils.com)MHT文件转换为常规HTML文件,该程序将MHT文件转换为PDF。如果您想要其他文件格式的MHT文件,如(MHT)DOC、PDF、MSG、PST或HTML,您可以使用Turgs MHT Wizard。
当 MHT 文件无法打开时该怎么办(What to Do When an MHT File Won’t Open)
如果您仍然无法在计算机上打开MHT文件,则可能存在文件关联问题。尝试将文件扩展名重新关联到Internet Explorer,看看是否有帮助。
- 为此,请选择Start > Settings > Apps。
- 选择默认应用(Default apps)。
- 选择您要设置的默认值并选择应用程序。您可以在Microsoft Store(Microsoft Store)中选择新应用,但您必须先安装它们,然后才能将它们设置为默认应用。
- 如果您希望MHT文件使用(MHT)Microsoft提供的应用程序以外的应用程序自动打开,请向下滚动并选择按文件类型选择默认应用程序。(Choose default apps by file type)
了解更多更改默认程序以在 Windows 或 Mac操作系统中打开文件的方法。(change the default program to open a file in Windows or Mac)
创建和打开 MHT 文件(Create and Open MHT Files)
每个文件都有打开它的软件,从.DAT和CFG到HEIC、MDB、UIF 文件(UIF file)等等。我们希望您能够使用我们介绍的不同程序打开您的MHT文件并访问文本或媒体文件。(MHT)在下面的评论中与我们分享您的经验。
What is an MHT File and How to Open It
When you’re browsing the web using Microsoft’s Internet Explorer, and you find a resource you’d like to keep for later, you can bookmark the tab or save the web page.
By default, Internet Explorer saves a web page as an MHT (Multipurpose Internet Mail Extension HTML) file extension.
If you try to open the MHT file on a PC running Windows 7/ Server 2012 R2/10, it will attempt to load the file using Internet Explorer regardless of your default browser. This is because Internet Explorer ships with every consumer version of Windows, though users with an enterprise or education license can be optionally excluded from it.
This guide explains how an MHT file works and how you can open it on your computer.
What Is an MHT File?
The MHT file extension is a web page archive format that saves the web HTML code and resources like images, flash animations, applets, and audio files in a single file. This is especially useful when you’re working offline and want to access the files.
You can create MHT files using different applications or in some internet browsers like Internet Explorer. If you’re using Firefox, Opera, or Safari browsers, you may require an extension, an add-on or a change in the browser settings in order to write an MHT file.
However, there’s no particular standard for creating and using MHT files as many applications display and save the file differently. This means that if you create the MHT file using a particular browser, the file may or may not display correctly on a different browser.
If you’re saving the web page so as to use images in the file, you may not be able to do that if the online images are moved, renamed, or deleted. This is because MHT files don’t save images. They only save links to the online images.
Plus, if the images in the MHT file are modified, you won’t see them when you try to open the file in a different browser.
MHT files differ from HTML files in that while MHT files hold the image files and other associated media resources in a single file, HTML only holds the text content of the page. Any images you see in HTML files are references to local or online images, which will load when the HTML file is loaded.
With MHT files, you can still view the page and other files regardless of whether or not the files still exist online. This is because these files are stored offline in a single accessible file, and any related links pointing to external files will be remapped and pointed to the links contained in the MHT file during the creation process.
How to Open an MHT File
If you need to move files around your PC or other storage space, you can easily move any web pages you saved as single files in MHT format. This saves you the hassle of creating extra folders when saving web pages, and you can access the files while offline.
There are several programs that can read MHT files besides Internet Explorer and other major browsers. You can use Microsoft Word to write and read MHT files, but you can also use WPS Writer or any other program on your PC that can read it.
Note: Microsoft Word supports MHT file formats, but it won’t open the file if a hyperlink in the file is corrupted or damaged.
To read an MHT file using a different program, right-click on the file, select Open with and choose the desired program from a list.
Other programs that can open MHT files include HTML editors like BlockNote or WizHtmlEditor or a text editor. Alternatively, you can open the MHT file in Internet Explorer and save it as HTML or TXT format.
You can also convert the MHT file to a regular HTML file using a program like MHTML Converter, Doxillion Document Converter, or CoolUtils.com, which converts MHT files to PDF. If you want the MHT file in other file formats like DOC, PDF, MSG, PST, or HTML, you can use Turgs MHT Wizard.
What to Do When an MHT File Won’t Open
If you still can’t open the MHT file on your computer, there could be a file association issue. Try to re-associate the file extension to Internet Explorer and see if that helps.
- To do this, select Start > Settings > Apps.
- Select Default apps.
- Choose the default you want to set and select the app. You can pick new apps in Microsoft Store, but you have to install them before setting them as default apps.
- Scroll down and select Choose default apps by file type if you want your MHT files to automatically open using an app besides the one Microsoft has provided.
Learn more ways to change the default program to open a file in Windows or Mac operating systems.
Create and Open MHT Files
Every file has software that opens it, from .DAT and CFG, to HEIC, MDB, UIF file and more. We hope you were able to open your MHT files and access the text or media files using the different programs we’ve covered. Share with us your experience in the comments below.