大佬教程收集整理的这篇文章主要介绍了带有jquery移动样式的JQuery-File-Upload按钮,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
但今天,我更新到jquery-1.9和jquery-mobile-1.3,按钮样式已经改变.
<span class="fileinput-button" data-role="button" data-icon="plus"> <span>添加文件</span> <input type="file" name="files[]" multiple /> </span>
但它看起来像that
<span class="fileinput-button" data-role="button" data-icon="plus"> <span>添加文件</span> <input type="file" name="files[]" multiple /> </span>
谢谢.
@H_616_2@
<div class="ui-input-text ui-shadow-inset ui-corner-all ui-btn-shadow ui-body-c"> <input type="file" name="files[]" multiple="" class="ui-input-text ui-body-c"> </div>
一个解决方案是阻止jQuery Mobile为你的元素设置样式,只需添加属性data-role =“none”
<input type="file" name="files[]" multiple data-role="none"/>
请参见jsfiddle:http://jsfiddle.net/X23dx/1/
jQuery Mobile 1.4的更新
要获得1.4版本的(类型)类似结果,您需要向周围的< span>添加一些新类:
<span class="ui-btn ui-icon-plus ui-btn-icon-left ui-corner-all fileinput-button"> <span>添加文件</span> <input type="file" name="files[]" multiple data-role="none"/> </span>
请参阅更新的jsfiddle:http://jsfiddle.net/X23dx/173/
@H_616_2@ @H_616_2@以上是大佬教程为你收集整理的带有jquery移动样式的JQuery-File-Upload按钮全部内容,希望文章能够帮你解决带有jquery移动样式的JQuery-File-Upload按钮所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。