li.Log-In {
margin-left: 20px;
text-transform: uppercase;
}
li.Log-In:hover {
margin-left: 20px;
text-transform: uppercase;
cursor: hand;
}
当我测试它时,当我将鼠标悬停在登录上方时,它不会将光标移到手上
答案 0 :(得分:6)
你不需要添加:悬停以实现此目的。并且手形光标的名称不是“手”而只是“指针” 试试这个:
li.Log-In {
margin-left: 20px;
text-transform: uppercase;
cursor: pointer;
}
答案 1 :(得分:-1)
Try this fun thing with hover!! :)
<!DOCTYPE html>
<head>
<title>Hover</title>
</head>
<style type="text/css">
#box{
width: 10em;
height: 10em;
background: #666;
margin: 2em auto;
box-shadow: 0 .2em .4em rgba(0,0,0,0.3);
-webkit-transition:all ease-in .2s;
-o-transition:all ease-in .2s;
-moz-transition:all ease-in .2s;
-ms-transition:all ease-in .2s;
transition:all ease-in .2s;
cursor: pointer;
/*cursor: wait;*/
}
#box:hover{
border-radius: .5em;
background: #13a58e;
box-shadow: 0 .5em .3em rgba(0,0,0,0.5);
margin: .3em auto;
}
</style>
<body>
<div id="box"></div>
</body>
</html>