Adding images within Html.ActionLink

前端 未结 4 2389
攒了一身酷
攒了一身酷 2021-02-18 21:02

I was trying to create an option to switch between a list view and widget view in ASP.net MVC (with razor view engine).

However, I am having some trouble trying to both

4条回答
  •  爱一瞬间的悲伤
    2021-02-18 21:41

    You can use Url.Action for hyperlink and Url.Content for image source.

    Then you can style the appearance with CSS.

    enter image description here

    
    
    

提交回复
热议问题