| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 471 人关注过本帖
标题:请大家帮我看看,为什么在本地浏览是好的,但上传至服务器后浏览却有点小问 ...
只看楼主 加入收藏
ttian123
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2010-9-14
结帖率:0
收藏
已结贴  问题点数:20 回复次数:4 
请大家帮我看看,为什么在本地浏览是好的,但上传至服务器后浏览却有点小问题了
图片附件: 游客没有浏览图片的权限,请 登录注册

图片附件: 游客没有浏览图片的权限,请 登录注册


请大家帮我看看,我在本地浏览的时候,是第一张图,而上传到服务器上,再从网上浏览的时候,是第二张图
二张图的唯一区别在于最上面的那个部分,在本地看的时候,是有背景色的,而上传服务器之后,再看的时候
就没有背景色了,请问是什么原因呀,请高人指点一下呀
搜索更多相关主题的帖子: 服务器 浏览 
2010-09-14 20:23
ttian123
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2010-9-14
收藏
得分:0 
这是代码,只有主页是这种情况,如果点到其他页面上的话,是好的,能正常显示背景色


<!--#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">&nbsp;</td>
    </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</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">&nbsp;</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">&nbsp;&nbsp;&nbsp;&nbsp;11111.[<a href="about.asp"><font color="#01b0b5">详细内容</font></a>]</td>
              </tr>
            </table>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td>&nbsp;</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%">&nbsp;</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%">&nbsp;</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">版权所有&copy;</span></td>
  </tr>
</table>
</BODY></HTML>
 
2010-09-14 20:28
ttian123
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2010-9-14
收藏
得分:0 
还有如果我把上面一段中的
><div align="left">
                  <% call ShowSearch(1) %>

给删了之后,背景色就可以正常显示,这是为什么呀
2010-09-14 20:40
cnfarer
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:179
帖 子:3330
专家分:21157
注 册:2010-1-19
收藏
得分:10 
是不是被档住了?

★★★★★为人民服务★★★★★
2010-09-14 21:48
gupiao175
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:40
帖 子:1787
专家分:7527
注 册:2007-6-27
收藏
得分:10 
body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    background-image: url(images/top_bg.jpg);
    background-repeat: repeat-x;
}
改为:
body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    background: #f4f4f4;
}
不用图片,而用颜色代替看看,是否问题依旧!

Q:1428196631,百度:开发地 即可找到我,有事请留言!
2010-09-16 00:46
快速回复:请大家帮我看看,为什么在本地浏览是好的,但上传至服务器后浏览却有点 ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.023192 second(s), 10 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved