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

请教 iframe 命令

xnigdnpdc 发布于 2009-09-23 08:48, 538 次点击
为什么我的iframe 显示不出内容来啊。



<iframe marginwidth=0 framespacing=0 marginheight=0 frameborder=0 width="700" height="550" src="<%=webServer%>News_ID.asp?ID=<%=ID%>"allowtransparency="true"></iframe>
iiiiskdjf;ksd;fsdfksiide3
9 回复
#2
jingjing3162009-09-23 09:17
<html>
 
<body>
 
<iframe src="/i/eg_landscape.jpg"></iframe>
 
<p>一些老的浏览器不支持 iframe。</p>
<p>如果得不到支持,iframe 是不可见的。</p>
 
 
</body>
</html>
#3
xnigdnpdc2009-09-23 10:00
回复 2楼 jingjing316
IE很新的。
#4
aspic2009-09-23 10:15
查看源代码 贴出来
#5
xnigdnpdc2009-09-23 10:18
回复 4楼 aspic
<!--#Include file="System.asp"-->
<%
ID=Replace(TRIM(Request("ShowID")),"'","")
%>
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=webTitle%></title>
<link href="CSS/Style.css" rel="stylesheet" type="text/css">
<!--#Include file="Include/webKey.asp"-->
</head>


<body>
<Script language="javascript">
function stop()
{
return false;
}
document.oncontextmenu=stop;
</script>
<table width="1004" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="top.asp"--></td>
  </tr>
</table>
<table width="912" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="203"><!--#include file="right.asp"--></td>
    <td valign="top"><table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="images/news.jpg" width="700" height="62"></td>
      </tr>
      <tr>
       <td valign="top"><iframe marginwidth=0 framespacing=0 marginheight=0 frameborder=0 width="700" height="550" src="<%=webServer%>News_ID.asp?ID=<%=ID%>"allowtransparency="true"></iframe></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="1004" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="copy.asp"--></td>
  </tr>
</table>
</body>
</html>
这是这个页的代码
#6
xnigdnpdc2009-09-23 10:20
回复 4楼 aspic
另一个 文件 News_ID.asp  里面是空白的。有不有关系
#7
aspic2009-09-23 10:22
我说查看源代码指的是运行之后 在浏览器查看
#8
aspic2009-09-23 10:23
既然那个文件没有内容 怎么可能显示什么东西~你随便加点东西在那个文件就知道了
#9
xnigdnpdc2009-09-23 10:25
回复 8楼 aspic
谢谢  。。我想显示ACCESS数据库中一个NEWS表中的一行。  要怎么写啊?
#10
aspic2009-09-23 10:59
先看置顶帖子
1