Jquery - 文件输入上的光标指针,可能吗? [英] Jquery - Cursor pointer on a file input, possible?

查看:139
本文介绍了Jquery - 文件输入上的光标指针,可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何设置 cursor:pointer; 到输入文件字段?

html

html

  <form id="up_1" name="up_1" action="" enctype="multipart/form-data" method="post">

    <div style="position: relative;">

      <input id="file_input" type="file" name="file_input" style="position: relative; text-align: right; opacity: 0; z-index: 2;" />

        <div id="ico_hdd" style="position: absolute; top: 0px; left: 0px; z-index: 1;">
        <img src="http://img834.imageshack.us/img834/9831/iconhdd.png" style="margin-bottom: -4px;"/>
      </div>

    </div>

  </form>

working - > http://jsfiddle.net/tPvJJ/

提前感谢!

Peter

Thanks in advance!
Peter

推荐答案

好的,这是不可能的:(

Ok, it is not possible :(

创建可点击的浏览器按钮的唯一方法是....flash。

The only way to create a clickable browser button is .... "flash".

对于示例 - > http://imageshack.us/

这篇关于Jquery - 文件输入上的光标指针,可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆