IE Open the server under the MHT file Implementation method _ other comprehensive

Source: Internet
Author: User
Tags file upload
What is a MHT file? IE5.0 the above version can save the Web page as a MHT format, which is to save the current Web page with all the files displayed on the current page in a MHT file, and you can also browse the saved page with IE after offline. The biggest advantage is that the saved Web page has only one file, easy to manage. And in the. HTML saved pages, you will see that there is actually a page and a corresponding folder, ie the page elements are stored separately. MHT is mono html, meaning a standalone HTML file, a Web e-mail file that can be opened with a browser if you have Outlook EXpress on your machine.
1. First of all, PPT courseware into Web page file format htm.
In Powerpoint2000, open the PPT courseware you want to convert, click the file in turn-Save as a Web page, click Publish in the pop-up window, and then appear in the Publish as Web page window, You can set the PPT page format that will appear in IE browser through web options (note: If you want PowerPoint to play in other browsers such as Netscape and Firefox, the browser support option is to select the second item "Microsoft Internet Explorer or Netscape Navigator 3.0 or higher "), then click Publish. After the release, you will find in the same directory as the PPT file, a new Web page file (with the same name as the ppt file, or can be renamed in the "Publish as Web page" window, suggested in English name) and a corresponding Web folder, just open the Web page file, you can start PPT page playback. Open the corresponding folder, you will find a lot of pictures, web pages, style sheets and other documents, these are all your PPT will be displayed in the browser all the elements. You need to upload Web pages and corresponding Web folders to all of your web site space.
2. In the Powerpoint2003 or above version, the situation is slightly different, click on the file-Save as a Web page, in the pop-up window saved type has two and web-related choices, one is the Web page htm, which is the same as we said above; the other is a single File Web page, select it to publish only a file, that is, MHT file, Click the file to play in IE browser, but the file is very large, and other browsers to play also need to download plug-ins.
Which one of the above 2 methods to choose? If your PPT is larger such as a few megabytes, then the resulting MHT file is also larger, and when your Web site space does not support a few megabytes of large files, the proposed choice of Method 1; If support large file upload, with Method 2, upload only one mht can. ===== can be opened on the server side = =
Add this in the Web.xml.
Copy Code code as follows:

<mime-mapping>
<extension>mht</extension>
<mime-type>text/x-mht</mime-type>
</mime-mapping>

Or
Copy Code code as follows:

<mime-mapping>
<extension>mht</extension>
<mime-type>message/rfc822</mime-type>
</mime-mapping>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.