这是代码,只有主页是这种情况,如果点到其他页面上的话,是好的,能正常显示背景色
<!--#include file="Inc/syscode.asp" -->
<%
function cutstr(tempstr,tempwid)
if len(tempstr)>tempwid then
cutstr=left(tempstr,tempwid)&"..."
else
cutstr=tempstr
end if
end function%>
<%
'???e???ˉ?????aèyDD′ú??
ShowSmallClassType=ShowSmallClassType_Default
MaxPerPage=MaxPerPage_Default
strFileName="Product.asp?BigClassName=" & BigClassName & "&SmallClassName=" & SmallClassName
%>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(images/top_bg.jpg);
background-repeat: repeat-x;
}
-->
</style>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE1 {
color: #FFFFFF;
font-weight: bold;
}
-->
</style>
<script language="javascript">
function view(viewid){
if (viewid.style.display=="none")
{
viewid.style.display="";
}
else
{
viewid.style.display="none";
}
}
</script>
<title>111111</title>
<body>
<div align="left">
<table width="100%" height="8" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="8"></td>
</tr>
</table>
<table width="952" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="362" height="51"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.,0,19,0" width="700" height="60">
<param name="wmode" value="transparent">
<param name="movie" value="images/logo.swf">
<param name="quality" value="high">
<embed src="images/logo.swf" quality="high" pluginspage="http://www. type="application/x-shockwave-flash" width="700" height="60"></embed>
</object></td>
<td width="590"> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="952" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="11"><img src="images/nav_left.jpg" width="11" height="38" /></td>
<td width="934" background="images/nav_mid.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="29"><div align="center"><strong><a href="index.asp"><font color="#FFFFFF" class="font33">首 页</font></a></strong></div></td>
<td><div align="center"><strong><a href="about.asp"><font class="font33" color="#FFFFFF">公司概况</font></a></strong></div></td>
<td><div align="center"><strong><a href="otype.asp?owen1=company"><font class="font33" color="#FFFFFF">最新动态</font></a></strong></div></td>
<td><div align="center"><strong><a href="product.asp"><font class="font33" color="#FFFFFF">产品展示</font></a></strong></div></td>
<td><div align="center"><strong><a href="job.asp"><font class="font33" color="#FFFFFF">招聘启事</font></a></strong></div></td>
<td><div align="center"><strong><a href="Contact.asp"><font class="font33" color="#FFFFFF">联系我们</font></a></strong> </div></td>
</tr>
</table></td>
<td width="10"><img src="images/nav_right.jpg" width="11" height="38" /></td>
</tr>
</table>
<table width="952" height="251" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="952" height="251"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.,0,19,0" width="952" height="251">
<param name="movie" value="images/banner.swf" />
<param name="quality" value="high" />
<embed src="images/banner.swf" quality="high" pluginspage="http://www. type="application/x-shockwave-flash" width="952" height="251"></embed>
</object></td>
</tr>
</table>
<table width="100%" height="8" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="8"></td>
</tr>
</table>
<table width="952" height="504" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="235" valign="top"><table width="235" height="33" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="235" height="33" background="images/menu_bg.jpg" class="font33"><div align="center" class="STYLE1">产品分类</div></td>
</tr>
</table>
<table width="100%" height="111" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" height="31" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="11"> <div align="right"></div></td>
<td><% call Showdaohang %></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" height="8" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="8"></td>
</tr>
</table>
<table width="235" height="33" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="235" height="33" background="images/menu_bg.jpg" class="font33"><div align="center" class="STYLE1">最新动态</div></td>
</tr>
</table>
<table width="96%" height="45" border="0" align="center" cellpadding="0" cellspacing="0" class="font44">
<tr>
<td><TABLE width=100% border=0 cellPadding=0 cellSpacing=0>
<TBODY>
<TR valign="top">
<TD width="367"
colSpan=2
><%
set rs_news=server.createobject("adodb.recordset")
sqltext4="select top 5 * from news where BigClassName='company' order by id desc"
rs_news.open sqltext4,conn,1,1
%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<%i=0
do while not rs_news.eof%>
<tr align="center">
<td width="4%"><IMG
src="image/main_but_09.gif" width="6" height="5"> </td>
<td width="96%" height="27" ><div align="left">
<p style='line-height:150%'><a href="shownews.asp?id=<%=rs_news("id")%>" target="_blank"> <%=cutstr(rs_news("title"),14)%></a><img src="images/gifnew.gif" width="27" height="11"><br>
</div></td>
</tr>
<%rs_news.movenext
i=i+1
if i=5 then exit do
loop
rs_news.close %>
</table></TD>
</TR>
</TBODY>
</TABLE></td>
</tr>
</table>
<table width="100%" height="8" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="8"></td>
</tr>
</table>
<table width="235" height="33" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="235" height="33" background="images/menu_bg.jpg" class="font33"><div align="center" class="STYLE1">联系我们</div></td>
</tr>
</table>
<table width="96%" height="108" border="0" align="center" cellpadding="0" cellspacing="0" class="font44">
<tr>
<td height="83"><p>1111</p>
</td>
</tr>
</table>
</td>
<td width="10"> </td>
<td width="707" valign="top"><table width="100%" height="139" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="29%"><img src="images/image.jpg" width="206" height="170" /></td>
<td width="71%" class="font44"> 11111.[<a href="about.asp"><font color="#01b0b5">详细内容</font></a>]</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="100%" height="107" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="font44">
<tr>
<td width="1%"> </td>
<td width="88%"><font color="#333333">产品展示</font></td>
<td width="11%"><font color="#333333"><a href="product.asp">>>了解更多</a></font></td>
</tr>
</table>
<table width="100%" height="3" border="0" cellpadding="0" cellspacing="0" bgcolor="#EBEBEB">
<tr>
<td height="3"></td>
</tr>
</table>
<table width="100%" height="131" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="646" height="103"><!--#include file="NewsProduct.asp"--></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" height="36" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div align="left">
<% call ShowSearch(1) %>
</div></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="font44">
<tr>
<td width="1%"> </td>
<td width="88%"><font color="#333333">友情链接</font></td>
<td width="11%"><font color="#333333"><a href="#"></a></font></td>
</tr>
</table>
<table width="100%" height="3" border="0" cellpadding="0" cellspacing="0" bgcolor="#EBEBEB">
<tr>
<td height="3"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="http://www.cmdi. target="_blank"><img src="images/link-1.jpg" width="299" height="62" border="0"></a></td>
<td><a href="http://www. target="_blank"><img src="images/link-2.jpg" width="206" height="62" border="0"></a></td>
<td><a href="http://www. target="_blank"><img src="images/link-3.jpg" width="172" height="62" border="0"></a></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="952" height="3" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#006699">
<tr>
<td width="1335" height="3"></td>
</tr>
</table>
<table width="952" height="40" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="698"><a href="#">返回首页</a> <a href="#">加入收藏</a></td>
<td width="254" class="font44"><span style="color: #888888">版权所有©</span></td>
</tr>
</table>
</BODY></HTML>