将鼠标指针保留在b:悬停元素上

时间:2015-03-24 10:06:52

标签: html css

我在几个元素上使用了以下CSS:

b:hover{
background-color: whitesmoke;
padding: 30px;
}

然而,当在Firefox等中渲染时,鼠标指针不再指示“手指指针”。相反,它使用光标指示和“指向”。有没有办法使用CSS来保留通常的“手指指针?”

谢谢...

2 个答案:

答案 0 :(得分:1)

尝试cursor:pointer



.b {
    background-color: whitesmoke;
    padding: 30px;
    width:50px;
    height:50px;
    cursor:pointer;
}

<div class="b"></div>
&#13;
&#13;
&#13;

答案 1 :(得分:0)

使用cursor:ponter;属性。

    b{
    background-color: whitesmoke;
    padding: 30px;
    cursor:ponter;
    }

在此处查看各种cursor属性的其他示例

http://www.w3schools.com/cssref/playit.asp?filename=playcss_cursor&preval=alias