简体   繁体   中英

MAUI Blazor - How to use static images

I'm testing the new .NET MAUI with Blazor, but I can't display images.

So I have 2 questions :

  • Which folder should I use ? Resources or wwwroot ?
  • How to display an image with an img tag : <img src=" ?? Which path ??">

Thanks in advance

I've a folder in the wwwroot file, which is called Images.

在此处输入图片说明

The img tag is:

<img src="Images/YOURPICTURENAME.png" />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM