Hi @李畋岷 ,
In Asp.net core application, by default the static files (such as HTML, CSS, images, and JavaScript) are stored within the project's web root directory. More detail information, see Static files in ASP.NET Core.
So, you could try to create an images
folder in the wwwroot
folder, and put the image into the images
folder. Then, you can display the image like this:
<img src="images/Image1.png" />
The result is like this:
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion