答案:使用CSScursor属性
您可以简单地将CSScursor属性与该值pointer一起使用,以将光标更改为手形指针,同时将鼠标悬停在任何元素上,而不仅仅是超链接。
在下面的示例中,将光标放在列表项上时,它将变为手形指针,而不是默认的文本选择光标。
例试试这个代码»
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Make the Cursor a Hand Pointer using CSS</title>
<style>
li{
cursor: pointer;
}
</style>
</head>
<body>
<ul>
<li>List item one</li>
<li>List item two</li>
<li>List item three</li>
</ul>
</body>
</html>
如需转载,请注明文章出处和来源网址:http://www.divcss5.com/html/h61130.shtml