框架页中针对IE6自适应宽度,不出现横向滚动条

html:

 

ContractedBlock.gif ExpandedBlockStart.gif Code


<!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>
    无标题页
</title><meta http-equiv="Content-type" content="text/html; charset=utf-8" /><meta name="keywords" /><meta name="description" /><link href="http://www.cnblogs.com/../styles/main.css" rel="stylesheet" type="text/css" /><link href="http://www.cnblogs.com/../styles/grid.css" rel="stylesheet" type="text/css" />
ExpandedBlockStart.gifContractedBlock.gif    
<style type="text/css">
        .style1
ExpandedSubBlockStart.gifContractedSubBlock.gif        
{}{
            width
: 60px;
        
}

    
</style>
</head>
<body>

        
<div class="container" style="margin-left:0">
<div class="box">
    
<h2>
    新建新闻
</h2>
    
</div>
</div>

    
<div>

</body>
</html>

 

其实.container{margin:0 auto; width:100%;}

在框架页中会出现整个容器溢出,没有自适应宽度,解决方法:

scrolling应该设置为yes

ContractedBlock.gif ExpandedBlockStart.gif Code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<frameset rows="108,*" cols="*" frameborder="no" border="0" framespacing="0">
  
<frame src="../common/header.aspx" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
  
<frameset cols="180,*" frameborder="no" border="0" framespacing="0">
    
<frame src="leftmenu.aspx" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
    
<frame src="main.aspx" name="mainFrame" id="mainFrame" title="mainFrame" scrolling="yes" />
  
</frameset>
</frameset>
<noframes><body>
</body>
</noframes></html>

 

转载于:https://www.cnblogs.com/Fred_Xu/archive/2009/06/03/1495254.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值