急!ie8利用css设置背景,背景图片不显示,ie6下显示正常
ie8利用css设置背景,背景图片不显示,ie6下显示正常。
请教高手
代码如下:
.footer
{
	width:900px;
	height:40px;
	line-height:150%;
	background-image:url(../Images/footer.gif);
	font-weight:bold;
	font-size:15px;
	color:white;
	padding-top:5px;
}
求助~
急
非常感谢
在线等
------解决方案--------------------line-height:150%;  
会不会是这句原因?删掉试试
------解决方案--------------------是不是图片路径不对
background-image:url(../Images/footer.gif);
------解决方案--------------------图片路径问题
------解决方案--------------------<!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 http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
.footer  
{  
width:900px;  
height:40px;  
line-height:150%;  
background-image:url(http://avatar.profile.csdn.net/noavatar_2.gif);  
font-weight:bold;  
font-size:15px;  
color:white;  
padding-top:5px;  
}  
</style>
</head>
<body>
<div class="footer"></div>
</body>
</html>