当前位置:编程学习 > JAVA >>

frame 自适应高度

<frameset id="frameset3"  border:none; background:#f8f8f8;"   framespacing="0" >  <!-- style="overflow-x:hidden;overflow-y:auto;" -->
                       <frame src="#" name="show1" id="show1" 
                    scrolling=no  frameBorder="0" />
                    <frame src="1" name="show2" id="show2" 
                    scrolling=no  frameBorder="0" />
                    <frame src="2" name="show3" id="show3" 
                    scrolling=yes  frameBorder="0" />
                     <frame src="3" name="show4" id="show4" 
                    scrolling=no  frameBorder="0" />
                     <frame src="4" name="show5" id="show5" 
                    scrolling=no  frameBorder="0" />
              </frameset>
根据每个页面的内容 frame的高度增加整个框架 的高度也增加,可以让内容全部看到, --------------------编程问答-------------------- document.getElementById("frameset3").height=document.body.scrollheight;
要和你frameset3的父高度一致。
补充:Java ,  Web 开发
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,