lau*_*kok 5 css jquery file textinput onfocus
当鼠标悬停时,如何使光标成为输入文件或输入文本上的指针?
我尝试过,但当然行不通,
<input type="file" style="cursor: pointer;"/>
Run Code Online (Sandbox Code Playgroud)
或者我必须使用javascrip(jquery)?
编辑:
抱歉我的错误 - 光标确实变成了一个点
<input type="text" style="cursor: pointer;"/>
Run Code Online (Sandbox Code Playgroud)
但不上
<input type="file" style="cursor: pointer;"/>
Run Code Online (Sandbox Code Playgroud)
您可以在 Firefox 上测试此链接,然后您就会明白我的意思。
仅将buttonoffile更改为指针,但未更改input fieldof 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>
Run Code Online (Sandbox Code Playgroud)