我有文件上载器控件。

当我将鼠标悬停在Web-Kit浏览器中的按钮上时,光标是默认值,而必须是指针。

我将此帖子The cursor:pointer property doesn't apply to file upload buttons in Webkit browsers设为红色,但就我而言,我不使用属性height。也可以尝试@Mohammed Ibrahim建议的解决方案,但它对我也不起作用。

这是我的示例:http://jsfiddle.net/q686cc7s/4/我尝试为每个可能的选择器添加cursor:pointer,但是没有成功。

有什么建议么?谢谢。



如果将display:none设置为input,则光标可以正常工作,但是上载器-不是:)

最佳答案

添加这个总是对我有用

input[type="file"]::-webkit-file-upload-button {
    cursor: pointer;
}

10-01 14:04
查看更多