【发布时间】:2014-04-06 15:04:33
【问题描述】:
在我的asp.net 应用程序中,有一个hyperlink。当我使用css 将鼠标悬停在它上面时,我想将它的color 更改为白色,但它不起作用。
<asp:HyperLink ID="hlViewItem" class="hplClass" runat="server" NavigateUrl='<%#Eval("Pro_Id","ProductDetails.aspx?ProID={0}") %>' ForeColor="#33ccff">View Item</asp:HyperLink>
我的css:
.hplClass:hover
{
color:white;
}
【问题讨论】:
-
请参阅this ASP.Net question 了解更多关于
ASP.Net中的 CSSClass 的信息。
标签: html asp.net css hyperlink hover