What is an MHT file? For Versions later than ie5.0, you can save the webpage as MHT. This method saves the current webpage and all the files displayed on the current page to an MHT file, you can also use IE to browse the saved page after going offline! Its biggest advantage is that the saved webpage has only one file, which is easy to manage. For a Web page saved in. html, you can see that there is actually a web page and a corresponding folder, and IE stores the page elements separately. MHT is mono HTML, meaning an independent HTML file. It is a web email file. You can open it in a browser only if Outlook Express is installed on your computer.
1. First, the PPT courseware is converted to the HTML file format htm.
In powerpoint2000, open the PPT courseware to be converted, click File> Save As web page, click Publish in the pop-up window, and then the "publish as web page" window appears, you can use the web option to set the PPT page format to appear in the IE browser (Note: if you want the PPT to be played in other browsers such as Netscape and Firefox, select "Microsoft Internet Explorer or Netscape Navigator 3.0 or higher" for the browser support option, and click "publish. After the release, you will find a new webpage file (with the same name as the pptfile, or you can rename it in the "publish as web page" window above, we recommend that you use an English name) and a corresponding webpage folder. You only need to open this webpage file to start playing the PPT webpage. Open the corresponding folder and you will find a lot of images, webpages, style sheets, and other files. These are all the elements your PPT will display in the browser. You need to upload all the webpage files and corresponding webpage folders to your website space.
2. In powerpoint2003 or later versions , The situation is slightly different. Click file-Save As web page. In the pop-up window, there are two storage types related to the webpage, one is the webpage htm, which is the same as what we mentioned above; the other is a single file webpage. If you select this webpage, only one file is published, that is, the MHT file. You can click this file to play it in the IE browser. However, this file is quite large, other browsers also need to download plug-ins to play videos.
Which of the above two methods can be used? If your PPT is large, such as a few megabytes, the generated MHT file is also large. If your website space does not support a few megabytes of large files, we recommend that you select method 1; if you support uploading large files, use method 2 to upload only one MHT. ===== Enabled on the server ====
Add this in Web. xml
CopyCode The Code is as follows: <mime-mapping>
<Extension> MHT </extension>
<Mime-type> text/X-MHT </mime-type>
</Mime-mapping>
OrCopy codeThe Code is as follows: <mime-mapping>
<Extension> MHT </extension>
<Mime-type> message/rfc822 </mime-type>
</Mime-mapping>