jQuery   发布时间:2022-03-30  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了jQuery MultiFile选择文件按钮大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我使用jQuery MultiFile插件.上面的上传按钮:

我可以将选择@L_673_2@文本更改为其内容吗?网上冲浪无法帮助我.

我只想要一个“选择@L_673_2@”.

请说*是(以及如何)或*否.

谢谢!

解决方法

是的,我找到了最好的解决方法!这不是一个黑客 – 我们只需要2个按钮:原始和’假’.

<input type="button" value="Choose Files">
  <input type="file">@H_944_21@ 
 

伪造显示用户,并且具有

z-index:1@H_944_21@ 
 

原件位于其上方,带有

z-index:2,opacity: 0; position: relative;@H_944_21@ 
 

并有回调:

:onmousedown=>"buttonPush('depressed')",:onmouseup=>"buttonPush('normal')"

  function buttonPush(buttonStatus) {
    if (buttonStatus == "depressed")
      document.getElementById("fake_btn").style.borderstyle = "inset";
    else
      document.getElementById("fake_btn").style.borderstyle = "outset";
  }@H_944_21@ 
 

感谢这个链接
http://www.dreamincode.net/forums/topic/15621-styling-a-file-browse-button/

关心@Piskvor,@ irar

大佬总结

以上是大佬教程为你收集整理的jQuery MultiFile选择文件按钮全部内容,希望文章能够帮你解决jQuery MultiFile选择文件按钮所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。