Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
の画像の背景を設定する方法はHtml.ActionLink()?
Html.ActionLink()
私のコード:
@Html.ActionLink("Home", "Index", "Home", new {@data_transition = "slide"})
@class = "css-classname"次のように設定する必要があります。
@class = "css-classname"
@Html.ActionLink("Home", "Index", "Home", new {@data_transition = "slide"}, new {@class="css-class-name"})
そして.cssで
.css-class-name{ background-image: your image; }