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.
我HyperLink在后面的代码中创建 a 并将其添加到Div. 我想添加一个属性,所以光标样式必须变为Hand.
HyperLink
Div
Hand
假设您的超链接控件是linkControl. 然后试试这个:
linkControl
linkControl.Style["cursor"] = "pointer";
顺便说一句,cursor超链接的默认样式是pointer
cursor
pointer
您也可以Cursor通过如下代码设置:
Cursor
希望有所帮助!