在<fine> </div> </li> </ul>中将<ul> <li>更改为<div>

时间:2015-01-08 22:38:26

标签: javascript html css fine-uploader

我正在使用http://fineuploader.com/和Twitter bootstrap

上传文件的html代码如下所示

    <ul class="qq-upload-list-selector">
     <li class="col-lg-3 col-md-4 col-xs-6 thumb">
            <div class="qq-progress-bar-container-selector">
                <div class="qq-progress-bar-selector qq-progress-bar"></div>
            </div>
            <span class="qq-upload-spinner-selector qq-upload-spinner"></span>
            <img class="qq-thumbnail-selector" qq-max-size="100" qq-server-scale>
            <span class="qq-edit-filename-icon-selector qq-edit-filename-icon"></span>
            <span class="qq-upload-file-selector qq-upload-file"></span>
            <input class="qq-edit-filename-selector qq-edit-filename" tabindex="0" type="text">
            <span class="qq-upload-size-selector qq-upload-size"></span>
            <a class="qq-upload-cancel-selector btn-small btn-warning" href="#">Cancel</a>
            <a class="qq-upload-retry-selector btn-small btn-info" href="#">Retry</a>
            <a class="qq-upload-delete-selector btn-small btn-warning" href="#">Delete</a>
            <a class="qq-upload-pause-selector btn-small btn-info" href="#">Pause</a>
            <a class="qq-upload-continue-selector btn-small btn-info" href="#">Continue</a>
            <span class="qq-upload-status-text-selector qq-upload-status-text"></span>
            <a class="view-btn btn-small btn-info hide" target="_blank">View</a>
</li>
    </ul>

我想将<ul></ul><li></li>标记更改为<div>,因为我希望结果显示在引导网格中。当我更改代码时,我无法获得上传文件的任何上传结果。看起来像新的li-tags由fineuploader javascript生成。

如何使用div代替,以便我可以在引导网格中显示结果?

测试了这个

<div class="qq-upload-list-selector col-lg-3 col-md-4 col-xs-6">
     <div class="qq-progress-bar-container-selector">
                    <div class="qq-progress-bar-selector qq-progress-bar"></div>
                </div>
Rest of the code ....
</div>

1 个答案:

答案 0 :(得分:0)

Fine Uploader期望qq-upload-list-selector内的容器能够保存文件项。考虑添加另一个<div>作为qq-upload-list-selector的唯一子项。

因此...

<div class="qq-upload-list-selector col-lg-3 col-md-4 col-xs-6">
    <div>
        <div class="qq-progress-bar-container-selector">
            <div class="qq-progress-bar-selector qq-progress-bar"></div>
        </div>
Rest of the code ....
    </div>
</div>

为什么你需要一个<div><div>没有什么特别之处。只需适当修改列表项/列表的样式即可。如果模板中没有<li>标签,则Fine Uploader不会插入{{1}}标签。