The image path you provided (C:\\Users\\Administrator\\Desktop\\新建文件夹\\1.png) is a local Windows absolute path, which cannot be directly used in a web context (e.g., in an HTML file) due to browser security restrictions (browsers block access to local files from web pages by default).
To properly display this image:
- Move the image to your project directory: Place the
1.pngfile into a subfolder of your project (e.g.,assets/imagesor directly in the same folder as your HTML file). - Use a relative path:
- If the image is in the same folder as your HTML:
<img src="1.png" alt="Image description"> - If it’s in an
assetssubfolder:
<img src="assets/1.png" alt="Image description">
- If the image is in the same folder as your HTML:
- Test with a local server: For local testing, run a simple server (e.g.,
python -m http.serverin your project folder) to avoid browser security blocks on local files.
This way, the image will load correctly in your web page. Let me know if you need further help with setup!


作者声明:本文包含人工智能生成内容。