注册 登录
编程论坛 ASP技术论坛

文件包含问题

qpjiangjie 发布于 2010-03-06 14:49, 398 次点击
top.asp 文件如下:
<link href="css.css" rel="stylesheet" type="text/css">
<table width="960" height="85" border="0" cellpadding="0" cellspacing="0" align="center">
      <tr>
        <td width="68%" align="left">
        <table border="0" cellPadding="0" cellSpacing="0" width=700 height=66 align=center
>
<tr>
<TD width=700 height=66 background="../images/logo1.jpg"><EMBED pluginspage=http://www.
src="15.swf"   width=700 height=66
type=application/x-shockwave-flash wmode="transparent"
quality="high"></EMBED></TD><tr></table>   

        </td>
        
        <td width="32%" align="right"><iframe src="http://m. " width="150" height="60" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="No"></iframe></td>
      </tr>
    </table>
      <table width="960" border="0" cellpadding="0"  cellspacing="0"  align="center">
      <tr>
        
          <td width="24%"><div style="padding-bottom:6px; color:#000000">
<script src="include/date.js" type=text/javascript></script> <span id="time"></span>    <script>setInterval("time.innerHTML=new Date().getHours()+':'+new Date().getMinutes()+':'+new Date().getSeconds()",1000);</script>
       </div></td>
          <td width="74%">
         
          <table width="100%" height="29" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td>               
              <!--#include  file="21.html" -->
               </td>
            </tr>
        </table></td>
        </tr>
    </table>


图片下带 flash效果

但是将这个文件包含到他的上级目录下的一个文件下top2.asp
怎么都不显示了啊
top2.asp 如下:

<html xmlns="http://www.
<head>
<title>无标题文档</title>
</head>

<body>
<!--#include  file="include/top.asp" -->
</body>
</html>
1 回复
#2
yms1232010-03-07 14:37
楼主说的是样式没显示出来?
<link href="css.css" rel="stylesheet" type="text/css">
这句话最好放在<head></head>之间。
1