Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

htm file type problem with graphics and other details

more options

I have been distributing (via Gmail) web-pages I have designed for customers that were saved in .htm file format (complete web-pages) from Mozilla Firefox 58.0.2 (64 bit). When the customers have opened these gmail attachments (.htm files) on their local machine they open in their Firefox or Chrome but do not have any graphics and all color information is stripped from them. This is definitely not an acceptable way to get my web-page pilots approved at all!

As far as I was concerned this .htm was the ideal way to send complete web pages but now I definitely don't want to use it! Do you have any ideas qabout what is wrong or recommendations to correct these 'graphicless' complete webpages?

What a pity Dave

I have been distributing (via Gmail) web-pages I have designed for customers that were saved in .htm file format (complete web-pages) from Mozilla Firefox 58.0.2 (64 bit). When the customers have opened these gmail attachments (.htm files) on their local machine they open in their Firefox or Chrome but do not have any graphics and all color information is stripped from them. This is definitely not an acceptable way to get my web-page pilots approved at all! As far as I was concerned this .htm was the ideal way to send complete web pages but now I definitely don't want to use it! Do you have any ideas qabout what is wrong or recommendations to correct these 'graphicless' complete webpages? What a pity Dave

Избрано решение

davethor said

I have been distributing (via Gmail) web-pages I have designed for customers that were saved in .htm file format (complete web-pages) from Mozilla Firefox 58.0.2 (64 bit).

When you use the "Web page, complete" format, the HTML file is not complete in itself. Firefox creates a companion folder that contains the various stuff the browser needs to fill in the missing content, such as images and style sheets.

You could "zip" the file and folder together, but then the recipient would need to unzip it somewhere and load the page from disk so the contents of the folder would populate into the page. Inconvenient.

Would your correspondents mind receiving PDFs?

If they don't want PDFs, you could consider:

(1) The Save Page WE format ("Standard Items")

The images are converted to data URIs and embedded into the page. The results can be pretty huge.

https://addons.mozilla.org/firefox/addon/save-page-we/

(2) The MHTML format

This format is not natively supported in Firefox, but you can generate and view it using Internet Explorer 11 and possibly other browsers.

(3) Sharing a cloud storage link

Google Drive or Microsoft OneDrive would be affordable options.

Let us know what works out best for you and your clients.

Прочетете този отговор в контекста 👍 0

Всички отговори (3)

more options

Please paste the .htm code you are sending to here: https://pastebin.mozilla.org/

Then select a month for retention and after you hit Send, copy the URL for your Pastebin submission and paste that new IRL here.

Later today a contributor should be able to tell you what's happening.

more options

Are there any additional files included like CSS files or image files?

Make sure that (local) links are either relative and have forward slashes and not backslashes in their path.

You would normally check the Web Console and the Network Monitor for error messages.

more options

Избрано решение

davethor said

I have been distributing (via Gmail) web-pages I have designed for customers that were saved in .htm file format (complete web-pages) from Mozilla Firefox 58.0.2 (64 bit).

When you use the "Web page, complete" format, the HTML file is not complete in itself. Firefox creates a companion folder that contains the various stuff the browser needs to fill in the missing content, such as images and style sheets.

You could "zip" the file and folder together, but then the recipient would need to unzip it somewhere and load the page from disk so the contents of the folder would populate into the page. Inconvenient.

Would your correspondents mind receiving PDFs?

If they don't want PDFs, you could consider:

(1) The Save Page WE format ("Standard Items")

The images are converted to data URIs and embedded into the page. The results can be pretty huge.

https://addons.mozilla.org/firefox/addon/save-page-we/

(2) The MHTML format

This format is not natively supported in Firefox, but you can generate and view it using Internet Explorer 11 and possibly other browsers.

(3) Sharing a cloud storage link

Google Drive or Microsoft OneDrive would be affordable options.

Let us know what works out best for you and your clients.