开发者

change the color of Link in cshtml

I want to change clolor of link in my cshtml page.

@Html.ActionLink("WareHouse", "WareHouseIndex", "Admin")

I want to make color of this above link开发者_如何学Go to white. Please suggest what should i do for that ?


Just add the htmlattributes argument to the call, setting the style:

@Html.ActionLink("WareHouse", "WareHouseIndex", "Admin", null, new {style = "color:white"})


use: @Html.ActionLink("WareHouse", "WareHouseIndex", "Admin", null, new { style = "color: #fff" })

or better yet new { @class = "white-link" } and style with css.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜