内联渲染FineUploader按钮(Render a FineUploader button inline)

编程入门 行业动态 更新时间:2024-10-17 20:30:26
内联渲染FineUploader按钮(Render a FineUploader button inline)

所以我使用的是FineUploader,它的工作原理非常好。 但是只有一个问题。 我一直在尝试将其内联呈现,以便我可以在它之前和之后使用文本。

我尝试使用<span id='btnupload'></span>和以下CSS:

#btnupload { display:inline-block; *display:inline; width:150px; }

但它似乎打破了上传者。 有关如何做到这一点的任何建议?

PS我不需要拖放,甚至进度条和上传列表来显示。 我只想让按钮工作,没有其他元素。

So I'm using FineUploader, and it works perfectly fine. There's just one issue though. I've been trying to render it inline, so that I can have text before and after it.

I tried using <span id='btnupload'></span> with the following CSS:

#btnupload { display:inline-block; *display:inline; width:150px; }

but it seems to break the uploader. Any suggestions on how this can be done?

P.S. I don't need the Drag & Drop, or even the progress bar and upload list to display. I just want the button to work, with no other elements.

最满意答案

现在看来你的问题是隐藏所提供的所有UI元素。 请注意,Fine Uploader有两种模式。 您正在使用包含默认但可自定义的UI,FineUploader模式的模式。 如果您只想使用API​​并确保Fine Uploader不创建任何UI元素,请改用FineUploaderBasic模式。 有关更多详细信息,请查看自述文件 。

It seems like your question now is to hide all of the UI elements provided. Note that Fine Uploader has two modes. You are using the mode that includes a default but customizable UI, FineUploader mode. If you want to only utilize the API and ensure Fine Uploader does not create any UI elements, use FineUploaderBasic mode instead. Have a look at the readme for more details.

更多推荐

本文发布于:2023-07-14 14:27:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1105090.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:内联   按钮   FineUploader   inline   Render

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!