Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

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

Solution choisie

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.

Lire cette réponse dans son contexte 👍 0

Toutes les réponses (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

Solution choisie

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.