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.
精彩评论