Javascript 修复Firefox文件选择窗口在所有其他窗口后打开的问题

Javascript 修复Firefox文件选择窗口在所有其他窗口后打开的问题,javascript,html,css,Javascript,Html,Css,我使用的是vBulletin,目前当有人使用FireFox点击“选择文件”上传附件时,文件窗口提示会在其计算机上所有其他窗口后面打开 这是我找到的代码,我相信它与调用窗口打开的函数有关: <div id="asset_addfiles"> <div id="selectall2"<vb:if condition="!$attachcount"> class="hidden"</vb:if>><label for="select

我使用的是vBulletin,目前当有人使用FireFox点击“选择文件”上传附件时,文件窗口提示会在其计算机上所有其他窗口后面打开

这是我找到的代码,我相信它与调用窗口打开的函数有关:

<div id="asset_addfiles">
        <div id="selectall2"<vb:if condition="!$attachcount"> class="hidden"</vb:if>><label for="selectallbox2">{vb:rawphrase select_all} <input type="checkbox" id="selectallbox2" name="selectall2" value="1" tabindex="1" /></label></div>
        {vb:rawphrase selected_attachments} 
        <button type="button" id="insert_inline" class="button" title="{vb:rawphrase insert_attachments_in_window}">{vb:rawphrase insert_inline_x, 0}</button>      
        <button type="button" id="insert_attachment" class="button">{vb:rawphrase done}</button>
    </div>  

    <script type="text/javascript">
    <!--
        var assetobj = new vB_Asset("assetobj", "asset_category_tree", "{vb:raw posthash}", "{vb:raw poststarttime}", "{vb:raw contenttypeid}", "{vb:raw bbuserinfo.userid}", {vb:raw auth_type}, {vb:raw asset_enable}, "{vb:raw insertinline}");
        <vb:if condition="$show['updateparent']">
            if (typeof window.opener != 'undefined' && typeof window.opener.vB_Attachments != 'undefined')
            {
                window.opener.vB_Attachments.reset();
                {vb:raw new_attachlist_js}
            }
        </vb:if>

    //-->
    </script>
    <!-- This element is cloned via javascript since IE doesn't like one to alter file input -->
    <form action="">
    <input id="uploadinput" type="file" class="bginput uploadinput" name="attachment[]" size="30" style="display:none" tabindex="1" />
    </form>

{vb:RAWSPHASE select_all}
{vb:rawphrase selected_attachments}
{vb:rawphrase insert_inline_x,0}
{vb:rawphrase done}

非常感谢您的帮助。谢谢

在表单中添加ID或CSS类,并在CSS中为其提供z索引

<form id="uploadinputform" action="">
或者像这样做一个内联风格的黑客:

<form style="z-index: 9;" action="">

是否有弹出窗口显示文件选择器?似乎显示了太多的代码,这就是所需的全部内容,单击时应该显示在前面。
<form style="z-index: 9;" action="">