首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

一个页面载入多个IFRAME有关问题!

2011-12-24 
一个页面载入多个IFRAME问题!!!!!!!我在页面中循环载入多个IFRAME后第一个IRAME内容可以正常显示,但是其他

一个页面载入多个IFRAME问题!!!!!!!
我在页面中循环载入多个IFRAME后   第一个IRAME内容可以正常显示,但是其他的IFRAME的内容确乱了然后刷新那个IFRAME又能正常显示。。。请高手解答
<#list   infoSubs   as   content>  
        <#if   content_index=curSubPage?default(0)>
                <tr   class= "jp4_1 "   id= "row${content.opId} ">
                    <td   valign= "middle "   align= "left ">
                      <span   class= "fybtBg04 "> 分页标题 </span>   <input   type= "text "   size= "90 "   name= "subInfoName "     value= "${content.opName} "> <br>
                        <input   type= "hidden "   name= "subInfoId "   value= "${content.opId} ">
                        <input   type= "hidden "   name= "infoContent${content_index+1} "   value= "${infoSubContents[content.opId]?default( " ")?html} ">
                        <IFRAME   style= "margin-top:3px;   margin-left:6px "   name= "eWebEditor${content_index+1} "   ID= "eWebEditor${content_index+1} "   index= "${content_index+1} "   frameborder= "0 "   scrolling= "no "   width= "100% "   height= "260 "   src= " "> </IFRAME>                    
    </td>
                </tr>
                <#else>
                <tr   class= "jp4_1 "   id= "row${content.opId} "   style= "display:   none; ">
                    <td   valign= "middle "   align= "left ">
                      <span   class= "fybtBg04 "> 分页标题 </span>   <input   type= "text "   size= "90 "   name= "subInfoName "     value= "${content.opName} "> <br>
                        <input   type= "hidden "   name= "subInfoId "   value= "${content.opId} ">
                        <input   type= "hidden "   name= "infoContent${content_index+1} "   value= "${infoSubContents[content.opId]?default( " ")?html} ">
                        <IFRAME   style= "margin-top:3px;   margin-left:6px "   name= "eWebEditor${content_index+1} "   ID= "eWebEditor${content_index+1} "   index= "${content_index+1} "   frameborder= "0 "   scrolling= "no "   width= "100% "   height= "260 "   src= "/compCommon/webEditor.action?action=eWebEditor&id=infoContent${content_index+1}&view=yes&style=standard&currentOpId=${content.opId}&isOffice=${bean.opName?url( "UTF-8 ")} "> </IFRAME>                    


    </td>
                </tr>
                </#if>
          </#list>

[解决办法]
在你的 <tr class= "jp4_1 " id= "row${content.opId} "> 外面套个table去循环下试试看。

热点排行