当您将光标悬停时,如何使光标成为输入文件或输入文本上的指针?
我的尝试,但它当然不起作用,
<input type="file" style="cursor: pointer;"/>
还是我必须使用 javascrip (jquery)?
编辑:
对不起我的错误 - 光标确实改变了一个点
<input type="text" style="cursor: pointer;"/>
但不上
<input type="file" style="cursor: pointer;"/>
您可以在 Firefox 上测试此链接,然后您就会明白我的意思。
只有button
offile
改变了指针,而不是input field
of file
。
编辑2:
这是我的 CSS 'hack',
<div id="right-col" style="position:relative; width:76px; height:24px; overflow:hidden; border:1px solid #000;">
<input type="file" style="position:absolute; top:0; right:0; z-index:2;opacity:1; cursor:pointer;"/>
</div>