※ ABeen Blog Success Technology Communicate ※ 树的方向由风决定,人生的方向有自己决定!※

※ 树的方向由风决定,人生的方向有自己决定!※

  博客园 :: 首页 ::  :: 联系 :: 订阅 订阅 :: 管理 ::
  53 随笔 :: 15 文章 :: 487 评论 :: 6 引用
主要注意的是:
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;width: 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;width: 100%;  height: 99%;" >
        
<% PrintList(); %>
        
<% PrintPaging(); %>
    
</div>
</body>
</html>

Life is not fair , get used to it !
Tag标签: Frame,滚动条
posted on 2008-02-29 20:03 ※ABeen※ 阅读(149) 评论(0)  编辑 收藏 所属分类: C#、VS.Net 、 AJAX

标题  
姓名  
主页
Email (博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
该文被作者在 2008-03-11 17:34 编辑过


相关链接: