【问题标题】:HTML ImageLink is not showing up on ASP.NET MVC PageHTML ImageLink 未显示在 ASP.NET MVC 页面上
【发布时间】:2010-04-20 18:25:38
【问题描述】:

我想在我的 ASP.NET MVC 页面上显示 ImageLink。

HTML。ImageLink 未显示。

我错过了任何图书馆吗?

感谢您的回复。

谢谢

【问题讨论】:

    标签: asp.net-mvc


    【解决方案1】:

    MVC 中没有 ImageLink 扩展。您可能会在这些问题上找到一些想法:

    ASP.NET MVC Ajax.ActionLink with Image Is there an ASP.NET MVC HtmlHelper for image links?

    或者你可以做一些简单的事情,比如:

    <a href='<%= Url.Action( "action", "controller" ) %>'>
       <img src='<%= Url.Content( "~/content/images/img.png" ) %>' alt="Action" />
    </a>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-09-18
      • 2012-12-13
      • 1970-01-01
      • 2019-02-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多