Asp.net-Mvc
MVC 3 - _Layout.cshtml。向網站添加徽標
我是 MVC 3 的新手,我正在嘗試將圖像添加到 _Layout.cshtml 文件中。我試過了
<img runat="server" id="img_logo" alt="Logo" src="Content/Images/mailworks.png" />沒有成功。徽標僅出現在某些視圖上。由於某種原因,在其他視圖上,圖像應該位於其他位置 - 使用螢火蟲找到它。
嘗試這個:
<img id="img_logo" alt="Logo" src="@Url.Content("~/Content/Images/mailworks.png")" />
用這個:
<img src="@Url.Content("~/Content/Images/mailworks.png")"...