gpt4 book ai didi

css - ASP.NET MVC Html.ActionLink 悬停样式

转载 作者:行者123 更新时间:2023-11-28 15:20:12 25 4
gpt4 key购买 nike

是否可以设置我的登录部分 ActionLink 的悬停效果的样式,以便它们不包含任何文本装饰并更改为与蓝色不同的颜色。我认为它应该类似于“:hover:text-decoration:none”

<li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink", style = "font-size:12px; font-weight:800; letter-spacing:1px; text-transform:uppercase;" })</li>

最佳答案

li #loginLink:hover{ 
color:red!important;
text-decoration:none!important;
}

关于css - ASP.NET MVC Html.ActionLink 悬停样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46323800/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com