MHTML:修订间差异

求闻百科,共笔求闻
添加的内容 删除的内容
(机器人:移除不再使用的模板)
(机器人:清理不当的来源、移除无用的模板参数)
第21行: 第21行:
}}
}}


'''網頁封存檔'''({{lang-en|'''M'''IME '''HTML'''}}或{{lang|en|'''M'''IME Encapsulation of Aggregate '''HTML''' Documents}},缩写mhtml)是種儲存檔案格式,在RFC 2110中定義,後經RFC 2557修訂。微軟稱之'''單一檔-{}-案網頁'''或'''单个文-{}-件网页'''(Single-File Web Page)<ref>{{cite web|url=https://docs.microsoft.com/en-us/office/troubleshoot/office-suite-issues/web-page-missing-file-error|title="Missing file" error with a web page file|author=|date=2020-06-12|publisher=Microsoft Docs|accessdate=|archiveurl=https://web.archive.org/web/20200621063116/https://docs.microsoft.com/en-us/office/troubleshoot/office-suite-issues/web-page-missing-file-error|archivedate=2020-06-21|deadurl=no|language=en}}</ref><ref>{{cite web |url=https://docs.microsoft.com/zh-tw/office/troubleshoot/office-suite-issues/web-page-missing-file-error |title=網頁檔案出現「遺失檔案」錯誤 |author= |date=2020-06-13 |publisher=Microsoft Docs |accessdate= |archiveurl=https://web.archive.org/web/20200621022955/https://docs.microsoft.com/zh-tw/office/troubleshoot/office-suite-issues/web-page-missing-file-error |archivedate=2020-06-21 |deadurl=no |language=zh-tw }}</ref><ref>{{cite web |url=https://docs.microsoft.com/zh-cn/office/troubleshoot/office-suite-issues/web-page-missing-file-error |title=包含网页文件的 "缺少文件" 错误 |author= |date=2020-06-13 |publisher=Microsoft Docs |accessdate= |archiveurl=https://web.archive.org/web/20200619143642/https://docs.microsoft.com/zh-cn/office/troubleshoot/office-suite-issues/web-page-missing-file-error |archivedate=2020-06-19 |deadurl=no |language=zh-cn }}</ref>。
'''網頁封存檔'''({{lang-en|'''M'''IME '''HTML'''}}或{{lang|en|'''M'''IME Encapsulation of Aggregate '''HTML''' Documents}},缩写mhtml)是種儲存檔案格式,在RFC 2110中定義,後經RFC 2557修訂。微軟稱之'''單一檔-{}-案網頁'''或'''单个文-{}-件网页'''(Single-File Web Page)<ref>{{cite web|url=https://docs.microsoft.com/en-us/office/troubleshoot/office-suite-issues/web-page-missing-file-error|title="Missing file" error with a web page file|author=|date=2020-06-12|publisher=Microsoft Docs|accessdate=||||language=en}}</ref><ref>{{cite web |url=https://docs.microsoft.com/zh-tw/office/troubleshoot/office-suite-issues/web-page-missing-file-error |title=網頁檔案出現「遺失檔案」錯誤 |author= |date=2020-06-13 |publisher=Microsoft Docs |accessdate= ||||language=zh-tw }}</ref><ref>{{cite web |url=https://docs.microsoft.com/zh-cn/office/troubleshoot/office-suite-issues/web-page-missing-file-error |title=包含网页文件的 "缺少文件" 错误 |author= |date=2020-06-13 |publisher=Microsoft Docs |accessdate= ||||language=zh-cn }}</ref>。


其以[[多用途互聯網郵件擴展]]格式,應用[[HTML郵件]]訊息相同技術開發,將一個[[多附件網頁]](如包含大量[[圖片]]、[[SWF|Flash動畫]]、[[JavaScript|Java小程序]]的網頁)儲存成單一檔案<ref name=12a3a45>{{cite book|author=David J. Clark|title=The Unofficial Guide to Microsoft Office Word 2007|year=2008|publisher=John Wiley & Sons|isbn=9780470377437}}</ref>,副檔名為'''.mht'''([[Internet Explorer|IE]])或'''.mhtml'''([[Chromium]]),支援瀏覽器對此兩種副檔名皆可設定讀取。由於IE最早使用,有時被簡稱MHT。
其以[[多用途互聯網郵件擴展]]格式,應用[[HTML郵件]]訊息相同技術開發,將一個[[多附件網頁]](如包含大量[[圖片]]、[[SWF|Flash動畫]]、[[JavaScript|Java小程序]]的網頁)儲存成單一檔案<ref name=12a3a45>{{cite book|author=David J. Clark|title=The Unofficial Guide to Microsoft Office Word 2007|year=2008|publisher=John Wiley & Sons|isbn=9780470377437}}</ref>,副檔名為'''.mht'''([[Internet Explorer|IE]])或'''.mhtml'''([[Chromium]]),支援瀏覽器對此兩種副檔名皆可設定讀取。由於IE最早使用,有時被簡稱MHT。
第37行: 第37行:
[[Microsoft Internet Explorer]]自5.0版支持MHTML格式,是第一個支持MHTML文件的瀏覽器。
[[Microsoft Internet Explorer]]自5.0版支持MHTML格式,是第一個支持MHTML文件的瀏覽器。
===Opera===
===Opera===
[[Opera瀏覽器|Opera]]自9.0版支持把網頁保存為MHTML文件,或讀取MHTML文件。<ref>{{cite web |url=http://my.opera.com/desktopteam/blog/show.dml/172375 |title=…and one more weekly! |last=Santambrogio |first=Claudio |date=10 March 2006 |publisher=[[Opera Software]] |accessdate=2009-05-15 |archiveurl=https://web.archive.org/web/20060321061106/http://my.opera.com/desktopteam/blog/show.dml/172375 |archivedate=2006-03-21 |deadurl=yes }}</ref>但基於WebKit/Blink的Opera 15卻未提供此功能,直到Opera 16才恢復。
[[Opera瀏覽器|Opera]]自9.0版支持把網頁保存為MHTML文件,或讀取MHTML文件。<ref>{{cite web |url=http://my.opera.com/desktopteam/blog/show.dml/172375 |title=…and one more weekly! |last=Santambrogio |first=Claudio |date=10 March 2006 |publisher=[[Opera Software]] |accessdate=2009-05-15 |||}}</ref>但基於WebKit/Blink的Opera 15卻未提供此功能,直到Opera 16才恢復。


現時通過{{mono|opera://flags#save-page-as-mhtml}}啟用實驗性的選項。
現時通過{{mono|opera://flags#save-page-as-mhtml}}啟用實驗性的選項。
===Firefox===
===Firefox===
[[Firefox]]不支援讀寫MHT文件。<ref>{{cite web|title=Bug 40873 - Save as rfc 2557 MHTML; complete webpage in one file|url=https://bugzilla.mozilla.org/show_bug.cgi?id=40873|accessdate=2018-10-23|archive-date=2020-12-15|archive-url=https://web.archive.org/web/20201215155813/https://bugzilla.mozilla.org/show_bug.cgi?id=40873|dead-url=no}}</ref>在57.0之前有兩個這樣的擴展是免費提供的,如[http://maf.mozdev.org/index.html Mozilla Archive Format] 、[https://web.archive.org/web/20170207055530/http://www.unmht.org/unmht/en_index.html UnMHT]。
[[Firefox]]不支援讀寫MHT文件。<ref>{{cite web|title=Bug 40873 - Save as rfc 2557 MHTML; complete webpage in one file|url=https://bugzilla.mozilla.org/show_bug.cgi?id=40873|accessdate=2018-10-23|||}}</ref>在57.0之前有兩個這樣的擴展是免費提供的,如[http://maf.mozdev.org/index.html Mozilla Archive Format] 、[http://www.unmht.org/unmht/en_index.html UnMHT]。


===Google Chrome===
===Google Chrome===
在[[Google_Chrome|Chrome]]創建MHTML文件可以通過啟用{{mono|chrome://flags#save-page-as-mhtml}}這個實驗性的選項(25.0起)(現已移除),<ref>[http://superuser.com/questions/369232/how-to-save-a-web-page-as-mht-in-chrome How to save a web page as MHT in chrome?] , superuser.com</ref>或是通過用於擴展程式的API(35.0起)。<ref>{{cite web |author= |url=https://developer.chrome.com/extensions/pageCapture |title=chrome.pageCapture |website=developer.chrome.com |accessdate=2019-11-10 |archive-date=2020-05-09 |archive-url=https://web.archive.org/web/20200509074844/https://developer.chrome.com/extensions/pageCapture |dead-url=no }}</ref>
在[[Google_Chrome|Chrome]]創建MHTML文件可以通過啟用{{mono|chrome://flags#save-page-as-mhtml}}這個實驗性的選項(25.0起)(現已移除),<ref>[http://superuser.com/questions/369232/how-to-save-a-web-page-as-mht-in-chrome How to save a web page as MHT in chrome?] , superuser.com</ref>或是通過用於擴展程式的API(35.0起)。<ref>{{cite web |author= |url=https://developer.chrome.com/extensions/pageCapture |title=chrome.pageCapture |website=developer.chrome.com |accessdate=2019-11-10 |||}}</ref>


===Safari===
===Safari===