以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XSL/XSLT/XSL-FO/CSS 』  (http://bbs.xml.org.cn/list.asp?boardid=8)
----  [求助]在xsl里写一个iframe 问题,高手来看看  (http://bbs.xml.org.cn/dispbbs.asp?boardid=8&rootid=&id=11496)


--  作者:Mega
--  发布时间:11/2/2004 2:27:00 PM

--  [求助]在xsl里写一个iframe 问题,高手来看看
我在xsl里写了一个iframe  ,但在iframe以后写任何代码 都显示不出来  是怎么回事
--  作者:doubleG
--  发布时间:11/2/2004 3:09:00 PM

--  
把你的代码贴出来我们才能清楚啊!
--  作者:Mega
--  发布时间:11/2/2004 4:02:00 PM

--  
代码在此  请下载


在China.xsl的最下边,
<table cellSpacing="0" cellPadding="0" width="98%" border="0">
<tr>
<td align="center">   
<xsl:element name="iframe">
<xsl:attribute name="name">xmlreply</xsl:attribute>
<xsl:attribute name="marginwidth">0</xsl:attribute>  
<xsl:attribute name="marginheight">0</xsl:attribute>
<xsl:attribute name="frameborder">0</xsl:attribute>
<xsl:attribute name="scrolling">yes</xsl:attribute>
<xsl:attribute name="width">750</xsl:attribute>  
<xsl:attribute name="height">300</xsl:attribute>
<xsl:attribute name="src">http://www.zz.ha.cn?Id=<xsl:value-of select="//China[@Id=1]/City"/></xsl:attribute>
</xsl:element>
</td>
<tr>
<td>abcdefghigh</td>
</tr>
table>

我在这个iframe后边加了个
<tr>
<td>abcdefghigh</td>
</tr>
就他显示不出来


--  作者:doubleG
--  发布时间:11/2/2004 4:31:00 PM

--  
不是不显示的问题,应该是iframe把它挡住了,那几个字就被压在frame的下方但是看不到。
--  作者:Mega
--  发布时间:11/2/2004 6:10:00 PM

--  
好像不对 你在后边多加一些 照样看不到
--  作者:doubleG
--  发布时间:11/2/2004 6:12:00 PM

--  
你把iframe设小一点 或者下面再设一个iframe试试看
--  作者:Mega
--  发布时间:11/2/2004 7:13:00 PM

--  
在放几个iframe  都能出来

~~~
我总感觉不是这儿的问题  头大ing~~


--  作者:孤独
--  发布时间:11/2/2004 7:54:00 PM

--  
<xsl:element name="iframe">
      <xsl:attribute name="name">xmlreply</xsl:attribute>
      <xsl:attribute name="marginwidth">0</xsl:attribute>
      <xsl:attribute name="marginheight">0</xsl:attribute>
      <xsl:attribute name="frameborder">0</xsl:attribute>
      <xsl:attribute name="scrolling">yes</xsl:attribute>
      <xsl:attribute name="width">750</xsl:attribute>      
      <xsl:attribute name="height">300</xsl:attribute>
      <xsl:attribute name="src">http://www.zz.ha.cn?Id=<xsl:value-of select="//China[@Id=1]/City"/></xsl:attribute>
     我不知道为什么,但我知道加在这里就可以.
     </xsl:element>
---------------------------以上完全Copy,没有废话,解决了,请客吧
--  作者:Mega
--  发布时间:11/2/2004 9:55:00 PM

--  
高手就是高手 哈哈

多谢~~


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
60.547ms