Img tags do not display pictures in Firefox

as the title: the img tag does not display pictures in Firefox! Other browsers can
this is my code:

<!DOCTYPE html>
<html>
    <head>
    <meta charset="utf-8">
        <title></title>
    </head>
    <body>
        <img src="D:\\\PS\\5658898.jpg" width="200" height="300"/>
    </body>
</html>

display as

< H2 > < / H2 >

problem solved!
just add file:/ to the path

Mar.26,2021

solved, just add file:/ in front of the path


it is best not to use the Chinese character path


to replace the backslash with a forward slash, or become a double backslash to try


each browser has a different form of expression, you change the image path according to the previous answer. If all browsers behave as you want, the front end will be much easier


html. Try not to use the local absolute path. It's not cost-effective for an application like yours to upload to a website.

Menu