求助,各位大神,怎样让IE6、7下,下面页面的效果也和ie8、9一样?高度100%

blueegg007 2012-06-11 12:22:03
求助,各位大神,怎样让IE6、7下,下面页面的效果也和ie8、9一样?
主要是content的高度100%失效问题。

在ie调试时看到父元素right都是正常的,但到了content就不正常了

<!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>
<meta content="text/html; charset=gb2312" http-equiv="Content-Type" />
<title>企业信息管理系统</title>
<style type="text/css">
body {
margin:0;
border:0;
padding:0;
height:100%;
max-height:100%;
overflow: hidden;
background-color:#166A9D;
font-size:12px;
font-family:宋体;
}
*{ margin:0; padding:0;}
/* html body {
padding:120px 0 50px 0;
}*/
/**/
.header {
position:absolute;
top:0;
left:0;
width:100%;
height:98px;
overflow:hidden;
background:#166A9D;
}
* html .header {height:98px;}
/**/
.footer {
position:absolute;
bottom:0;
left:0;
width:100%;
height:5px;
overflow:auto;
background:#166A9D;
}
* html .footer {height:5px;}
/**/
.right {
position:fixed;
top:98px;
left:165px;
bottom:5px;
right:0;
overflow:auto;
padding:0 6px 0 6px;
background:#166A9D;
}
* html .right {
height:100%;
width:100%;
}
.left
{
width:165px;
position:fixed;
background-color:#fff;
top:98px;
left:6px;
bottom:5px;
right:0;
overflow:auto;
}
* html .left{height:100%;}
.left .left_header
{
background:url(images/layout/main_40.gif) no-repeat;
height:28px;
padding:5px 0 0 45px;
overflow:hidden;
color:#fff;
font-size:16px;
}
.left .left_reduce
{
width:6px;
height:40px;
background:url(images/layout/main_55.gif) no-repeat;
position:fixed;
left:165px;
top:48%;
z-index:2;
}

.content { background-color: #fff;width:100%;height:100%;}

.nav
{
font-size:12px;
color:#033d61;
padding:3px 5px 3px 5px;
text-decoration:none;
}
.nav:hover
{
background:url(/images/layout/bg.gif);
border:1px solid #a6d0e7;
}
.content .content_header
{
background:url(images/content/tab_05.gif) repeat-x; height:30px; width:100%; padding:6px 0

6px 0;
}
.content .content_header a[class]
{
float:right;
}
.BtnAdd
{
background:url(images/content/BtnAdd.gif) no-repeat;
padding:0 3px 0 18px;
margin:3px 3px 3px 5px;
}
.BtnUpdate
{
background:url(images/content/BtnUpdate.gif) no-repeat;
padding:0 3px 0 18px;
margin:3px 3px 3px 5px;
}
.BtnDelete
{
background:url(images/content/BtnDelete.gif) no-repeat;
padding:0 3px 0 18px;
margin:3px 3px 3px 5px;
}
</style>
</head>
<body>
<!--头部,包括水平菜单↓-->
<div class="header">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="70" background="images/layout/main_05.gif">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="24">
<table width="100%" border="0" cellspacing="0"

cellpadding="0">
<tr>
<td width="270" height="24"

background="images/layout/main_03.gif">
 
</td>
<td width="505"

background="images/layout/main_04.gif">
 
</td>
<td>
 
</td>
<td width="21">
<img src="images/layout/main_07.gif">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="38px">
<table width="100%" border="0" cellspacing="0"

cellpadding="0">
<tr>
<td width="270px"

background="images/layout/main_09.gif">
 
</td>
<td>
<!--放置首页、前进后退等按钮-->
<div style="width: 500px; overflow: hidden">
<img alt="首页"

src="images/layout/main_12.gif" />
<img alt="后退"

src="images/layout/main_14.gif" />
<img alt="前进"

src="images/layout/main_16.gif" />
<img alt="刷新"

src="images/layout/main_18.gif" />
<img alt="退出"

src="images/layout/main_20.gif" />
<img alt="|" src="images/layout/main_21.gif"

/>
<img alt="个人资料"

src="images/layout/main_22.gif" />
</div>
</td>
<td width="21">
<img alt="" src="images/layout/main_11.gif">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="8px" style="line-height: 8px;">
<table width="100%" border="0" cellspacing="0"

cellpadding="0">
<tr style="line-height: 8px;">
<td width="270px"

background="images/layout/main_29.gif">
 
</td>
<td width="505px"

background="images/layout/main_30.gif">
 
</td>
<td>
 
</td>
<td width="21px">
<img src="images/layout/main_31.gif">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="28" background="images/layout/main_36.gif">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="177" height="28"

background="images/layout/main_32.gif">
<table width="100%" border="0" cellspacing="0"

cellpadding="0">
<tr>
<td width="20%" height="22">
 
</td>
<td width="59%" valign="bottom">
<div align="center" class="STYLE1">
</div>
</td>
<td width="21%">
 
</td>
</tr>
</table>
</td>
<td>
<a class="nav" href="javascript:void(0);">综合平台</a> | <a

class="nav" href="javascript:void(0);">
系统管理</a>
</td>
<td width="21">
<img src="images/layout/main_37.gif">
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!--头部,包括水平菜单↑-->

<div class="left">
<div class="left_header">管理菜单</div>
<a href="javascript:LeftToggle();" title="缩起/展开" class="left_reduce"></a>
<!--菜单主体区↓-->
<!--菜单主体区↑-->
</div>

<div class="right">
<div class="content">
<div class="content_header">
<img alt="" src="images/content/tb.gif" style="margin-left: 12px;" />
<!--按钮区↓-->
<a class="BtnDelete" href="javascript:void(0)">删除</a>
<a class="BtnUpdate" href="javascript:void(0)">修改</a>
<a class="BtnAdd" href="javascript:void(0)">新增</a>
<!--按钮区↑-->
</div>
<div class="right_content">
</div>
<div class="right_footer">
</div>
</div>
</div>
<div class="footer">
</div>
</body>
</html>
...全文
176 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
kinghome 2012-06-26
  • 打赏
  • 举报
回复
hake 一下css
blueegg007 2012-06-26
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]

让ie8, ie9的浏览器以ie7的方式解析页面。
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
[/Quote]
是想ie6/7中有ie8/9的效果...
盛世柔魂 2012-06-12
  • 打赏
  • 举报
回复
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
香蕉猪 2012-06-12
  • 打赏
  • 举报
回复
+1
[Quote=引用 1 楼 的回复:]
让ie8, ie9的浏览器以ie7的方式解析页面。
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
[/Quote]
豪情 2012-06-12
  • 打赏
  • 举报
回复
让ie8, ie9的浏览器以ie7的方式解析页面。
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧