Why the images in the web page cannot be displayed

Web 2021-08-16 20:03:00 0 3,217

The image is an embedded object in the web page, not the image is saved in the web page, the web page just saves the path to the image. When the browser interprets the HTML file, it will look for the image by the specified path, and if the image does not exist at the specified location, it will not be displayed properly.

In order to ensure the proper display of images, the following points need to be noted when creating web pages.

(1) The image format must be supported by the web page.

(2) The path of the image must be correct, and the image file extension must not be omitted.

(3) When the HTML file position changes, the image must change with it, i.e. the image position and the HTML file position always remain relatively consistent.


Your opinion

Already have 0 Article answer