0
 <%: Html.ActionLink(" ", "Index", "Card", new { hidefocus = "hidefocus" }, new { style = "background: url('Content/shopping_trolley.png') no-repeat center; display:block; height:50px;width:50px;" })%>

一个文件夹中的视图-但显示主页和卡片,而其他文件夹不显示-您能帮帮我吗?

如何将其 <%= Page.ResolveClientUrl(~/Content/shopping_trolley.png)%> 插入 url?

4

1 回答 1

0
<a href="http://www.google.com"><img src="http://www.google.com/intl/en_ALL/images/logo.gif"/></a>

检查下面的例子看看

http://gregory.pakosz.fr/stackoverflow/1921726.html

于 2013-09-24T05:47:41.183 回答