首頁  >  問答  >  主體

css3 - <input type=file>这个标签怎么让浏览按钮上出现小手的标志。

让input[type="file"]透明度为零,然后写了个上传按钮样式,但是鼠标移上去不变小手,我设置了cursor:pointer;后在非Ie浏览器里有效,其他浏览器里没有效果,怎么办?

PHP中文网PHP中文网2714 天前865

全部回覆(2)我來回復

  • ringa_lee

    ringa_lee2017-04-17 11:07:45

    似乎无解的说,以及,请善用搜索,关键词"input file change cursor"。

    cc: http://stackoverflow.com/questions/1537223/change-cursor-type-on-input-type-file
    cc: http://stackoverflow.com/questions/7155381/css-how-make-the-cursor-to-become-a-pointer-on-the-input-file

    回覆
    0
  • ringa_lee

    ringa_lee2017-04-17 11:07:45

    可以试试这样成不

    ie就font-size 设置个大点的字体

    chrome下边可以font-size为0

    回覆
    0
  • 取消回覆