0

在我的页面中,在 IE 中自动生成了一个额外的空间或框...但是在其他浏览器中运行良好...我不知道这是什么原因...我附上了屏幕截图...在截图,你可以找到一个小空间或盒子......那是自动生成的...... 在此处输入图像描述

我的代码:

<s:form name="CompanyInformationForm" action="CompanyInformation"  method="post" enctype="multipart/form-data">
     <span class="headerLabelText"> <s:text  name="companyInformation"></s:text>
    </span>
    <br/><br/>
    <table summary="header data for Company Information text table">
      <caption class="captionHide">Company Information</caption>
    <tr>
        <th scope="row" align="left" headers="companyinfoheader1"><span class="paragraphText">
        <s:property value="%{companyinfoheader1}"/></span></th>
    </tr>   
    <tr>
        <td headers="companyinfoheader2"><span class="paragraphText">
        <s:property value="%{companyinfoheader2}"/></span></td>
    </tr>   
    </table>
    <fieldset style="display:block;">
        <table class="mi360Field" width="100%" summary="Upload Issuer File table">
        <caption class="captionHide">Upload Issuer</caption>
        <tr>
        <th scope="row" align="left" width="50%" headers="uploadIssuerTemplate">
            <span>
                 <span class="purpleHeaderText"> <s:text name="uploadIssuerTemplate"></s:text></span>
            </span><br/><br/>
            <table summary="provider directory file upload table">
             <caption class="captionHide">Upload File</caption>
                <tr>
                    <td headers="issuerFileType">
                     <span class="headerLabelText"> <s:property value="%{issuerFileType}"/> : </span></td>

                    <td headers="fileTypeID"><s:select cssClass="selectBox" name="documentUtilDTO.fileTypeID" title="issuer file type" list="fileType"  listKey="key" listValue="value"
                    titleKey="fileType" label="%{issuerFileType}" title="fileType"

                    style="width:225px" styleId="newPageMessageType">
                    </s:select></td>
                </tr>
                <tr><th scope="row" align="left"></th></tr>
                <tr><td headers="uploadissuerFile">
                      <span class="headerLabelText"> <s:text name="uploadissuerFile"></s:text>
                    </span></td>
                    <td headers="fileData"><div class="fileinputs"><s:file name="documentUtilDTO.fileData" label="test" title="test" tooltipIconPath="../../KY/images/common/buttons/uploadBtn.png" title = "Browse" tooltip="Browse..." size="20" cssClass="file" /></div></td>
                </tr>   
                <tr>
                    <td></td>
                    <td><s:a href="#" accesskey="u" onclick="submitForm('UploadCompanyInformation')"><img id="uploadBtn" src="../../KY/images/common/buttons/uploadBtn.png" alt="upload" style="border: none;"  /></s:a></td>
                </tr>           
            </table>

        </th>
        </tr>
        </table>
        <br></br>

        <div id="divDocuments" style="height:auto;overflow-y:auto;border: none;">
            <br />
            <s:form>
            <s:url id="downloadCompanyinfoDOC" action="downloadCompanyinfoDOC" > </s:url>
            <display:table  export="false" id="data"  class="displayTableBorder"  style="width:70%;" name="listCmpInfDto" uid="fileDetails"  rules="rows"  requestURI="CompanyInformation" pagesize="3" summary="Company Information list">
                <display:setProperty name="paging.banner.placement" value="bottom" />
                <display:setProperty name="basic.empty.showtable" value="true" />
                <display:setProperty name="paging.banner.onepage" value="" />
                <display:setProperty name="paging.banner.no_items_found" value="" />
                <display:setProperty name="paging.banner.one_item_found" value="" />
                <display:setProperty name="paging.banner.all_items_found" value="" />
                <display:setProperty name="paging.banner.some_items_found" value="" />
                <display:setProperty name="paging.banner.page.separator" value=" " />
                <display:setProperty name="paging.banner.group_size" value="5" />
                <display:caption media="html" class="captionHide">document List</display:caption>
                <display:setProperty name="paging.banner.full" value='<p><span id="hix-pagination"><span> <a id="doublePrevCompany" class="prev" href="{1}">&#9668;&#9668;</a> <a id="singlePrevCompany" class="prev" href="{2}">&#9668;</a> {0} <a id="singleNextCompany" class="next" href="{3}">&#9658;</a> <a id="doubleNextCompany" class="next" href="{4}">&#9658;&#9658; </a></span></span></p>' /> 
                <display:setProperty name="paging.banner.first" value='<p><span id="hix-pagination"><span> <a id="doublePrevCompany" class="prev" href="{1}">&#9668;&#9668;</a> <a id="singlePrevCompany" class="prev" href="{2}">&#9668;</a> {0} <a id="singleNextCompany" class="next" href="{3}">&#9658;</a> <a id="doubleNextCompany" class="next" href="{4}">&#9658;&#9658; </a></span></span></p>' /> 
                <display:setProperty name="paging.banner.last" value='<p><span id="hix-pagination"><span> <a id="doublePrevCompany" class="prev" href="{1}">&#9668;&#9668;</a> <a id="singlePrevCompany" class="prev" href="{2}">&#9668;</a> {0} <a id="singleNextCompany" class="next" href="{3}">&#9658;</a> <a id="doubleNextCompany" class="next" href="{4}">&#9658;&#9658; </a></span></span></p>' />                                                                                                      

                <display:column property="fileType" scope="colgroup" title="${documentFileType}"     sortable="true" headerClass="hixTableHeader"  class="displayTagtd" style="width: 10%;text-align: center;"  media="html" />
                <display:column property="fileName" scope="colgroup" url="${downloadCompanyinfoDOC}" sortable="true" paramProperty="companyDocID" paramId="documentUtilDTO.documentId" title="${documentFileName}"   headerClass="hixTableHeader"   class="displayTagtd" style="width: 10%;text-align: center;"/>
                <display:column property="creationDate" scope="colgroup"  title="${uploadDate}"  sortable="true"   headerClass="hixTableHeader"  class="displayTagtd" style="width: 10%;text-align: center;"  />
                <display:column property="createdBy" scope="colgroup" title="${uploadBy}" sortable="true"  headerClass="hixTableHeader"  class="displayTagtd" style="width: 10%;text-align: center;"  />
            </display:table>
            <br></br>
            <table style="width:70%; overflow-y:auto;border: none;" summary="button section">
            <caption class="captionHide" >button section</caption>
                <tr>
                    <th scope="row" width=50% align="left"><s:a href="#" accesskey="c" onclick="submitForm('IssuerHome')"><img id="cancelBtn" src="../../KY/images/common/buttons/closeBtn.png" alt="close" style="border: none;" /></s:a></th>
                </tr>
            </table>
            <br/>
            <br/>
            <br/>
            </s:form>
        </div>
    </fieldset>
    <span style="display:none"><s:submit/></span>
</s:form>
4

1 回答 1

0

如果您的字段集设置为阻止,则最后一个表之后的三个 <br/> 可能是导致此问题的原因。

另外一个附带问题是,您有嵌套的表单,这在 v5 之前的 HTML 中是不允许的。IE 可能无法正确呈现这些内容。

更新

根据评论,问题是嵌套表格

于 2013-03-26T07:05:42.660 回答