zoukankan      html  css  js  c++  java
  • Frame套帧只显示纵向滚动条的实现

    主要注意的是:
    1、删除<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
    >
    2、用Div来控制样式

        <div style="overflow: auto; 100%;  height: 99%;" >
    效果如图:




    主框架代码:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        
    <title>套帧</title>
    </head>
    <frameset cols="350,*" id="myFrame" border="1" frameborder="1" framespacing="0" >
        
    <frameset rows="110,*">
            
    <frame name="leftTop" id="leftTop" src="#" scrolling="no" target="right" />
            
    <frame name="leftContent" id="leftContent" src="######" scrolling="auto"  target="_self" />
        
    </frameset>
        
    <frameset id="contentFrame" rows="*,50">
            
    <frame name="rightContent" id="rightContent" src="#"  scrolling="auto"  target="right" />
            
    <frame name="rightBottom" id="rightBottom" src="#" scrolling="auto"  target="_self" />
        
    </frameset>
    </frameset>
    </html>

    子框架代码:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">(一定要删除些内容)
    <
    html xmlns="http://www.w3.org/1999/xhtml">
    <head >
        
    <title>Untitled Page</title>
        </head>
    <body >
        //加一个Div来控制样式
        <div style="overflow: auto; 100%;  height: 99%;" >
            
    <% PrintList(); %>
            
    <% PrintPaging(); %>
        
    </div>
    </body>
    </html>

  • 相关阅读:
    cocos2d-x 3.0游戏实例学习笔记 《跑酷》第七步--物理碰撞检測(1)
    Android给定坐标计算距离
    LeetCode——Gray Code
    hdu 1203
    2015 年度新增开源软件排名TOP100
    compact处理流程分析
    ExtJs--06--Ext.WindowGroup相关方法简单使用
    android4.4的两个bug
    高阶MapReduce_1_链接多个MapReduce作业
    如何设置eclipse格式化xml代码时不自动换行
  • 原文地址:https://www.cnblogs.com/abeen/p/1086559.html
Copyright © 2011-2022 走看看