所以我使用的是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.
更多推荐
发布评论