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.
代码:
LinkButton linkButton = new LinkButton(); linkButton.OnClientClick="changecolor";--i need to change this to on mouse focus event
链接按钮没有像我们一样的属性onClientClick。
onClientClick
linkButton.Attributes.Add("onmouseover", "yourChangeColorFunction();");
您可以为悬停时具有不同颜色的链接按钮定义 CSS 类。
a { color:black; } a.hover { color:blue; }