Jas*_*Lie 3 .net c# asp.net image loading
发布应用程序后,我的图像将无法加载。当我调试时它们会加载。知道什么会导致这个问题吗?
<a class="navbar-brand" href="@Url.Action("SearchQuery", "Search")"><img id="logo" src="~/Images/Logo.png"/></a>
Run Code Online (Sandbox Code Playgroud)
尝试在 src 属性上使用 Url.Content :
src="@Url.Content("~/Images/Logo.png")"
Run Code Online (Sandbox Code Playgroud)