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>

  • 相关阅读:
    QtAV编译
    git 恢复到刚刚clone下来的状态
    select2 清除选中项解决办法
    mysql: 查看某库表大小
    C# Linq 交集、并集、差集、去重
    mvc ajax访问后台时session过期无法跳转到Login页面问题解决
    Asp.net:上传文件超过了最大请求长度
    Firebug 没死,活在 Firefox DevTools 中
    vs2015 加载项目的时启动:无法启动 IIS Express Web 服务器
    Visual Studio安装SVN插件
  • 原文地址:https://www.cnblogs.com/abeen/p/1086559.html
Copyright © 2011-2022 走看看