求助!给多行加上滚动条,怎么做?

lanshantutu 2003-06-30 09:44:50
我的xml和xsl文件如下:
查询.xml:
<?xml version="1.0" encoding="GB2312" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="查询.xsl"?>
<CD>
<查询>
<NUMBER>12</NUMBER>
<CODE>
<DATASET>
<DEFINE>
<FIELDS>
<MPHONECODE/>
</FIELDS>
</DEFINE>
<DATA>
<ROW TCODE="888"/>
<ROW TCODE="000"/>
<ROW TCODE="555"/>
<ROW TCODE="888"/>
<ROW TCODE="000"/>
<ROW TCODE="555"/>
<ROW TCODE="888"/>
<ROW TCODE="000"/>
<ROW TCODE="555"/>
<ROW TCODE="888"/>
<ROW TCODE="000"/>
<ROW TCODE="555"/>
<ROW TCODE="888"/>
<ROW TCODE="000"/>
<ROW TCODE="555"/>
<ROW TCODE="888"/>
<ROW TCODE="000"/>
<ROW TCODE="555"/>
<ROW TCODE="888"/>
<ROW TCODE="000"/>
<ROW TCODE="555"/>
<ROW TCODE="888"/>
<ROW TCODE="000"/>
<ROW TCODE="555"/>
<ROW TCODE="888"/>
<ROW TCODE="000"/>
<ROW TCODE="555"/>
<ROW TCODE="888"/>
<ROW TCODE="000"/>
<ROW TCODE="555"/>
<ROW TCODE="888"/>
<ROW TCODE="000"/>
<ROW TCODE="555"/>
</DATA>
</DATASET>
</CODE>
</查询>
</CD>


查询.xsl:
<?xml version="1.0" encoding="GB2312"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" xmlns="http://www.w3.org/TR/REC-html40" result-ns="">
<xsl:template><xsl:apply-templates/></xsl:template>
<xsl:template match="/">
<HTML>
<HEAD>
<TITLE>查询</TITLE>
</HEAD>
<BODY>
<xsl:apply-templates select="CD/查询"/>
</BODY>
</HTML>
</xsl:template>
<xsl:template match="查询">
<form name="form1" method="post" action="">
<p></p>
<table width="96%" border="0" align="center" cellspacing="0">
<tr>
<td height="550">
<table width="100%" height="545" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#EEF4FA">
<tr>
<td height="30" bgcolor="#E1EBF4">
<table width="99%" height="21" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="10%" height="21"><font size="2" face="宋体">号码</font></td>
<td width="22%"><table width="69%" height="18" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><font size="2" face="宋体"/><input type="text" name="NUMBER" /></td>
</tr>
</table></td>
<td width="32%"><table width="99%" height="18" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="57%"><table width="20%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="submit" name="Submit" value="查询" style="width:60"/></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="20"> <hr align="center" size="1"/>
<table width="32%" border="0" align="left" cellpadding="0" cellspacing="2">
<tr bgcolor="#C9D7E9">
<td width="53"><div align="center"><font size="2" face="宋体">序号</font></div> </td>
<td width="193" height="16"><div align="left"></div>
<div align="center"><font size="2" face="宋体">号码</font></div></td>
</tr>
<xsl:for-each select="CODE/DATASET/DATA/ROW">
<tr>
<td width="53" bgcolor="#F5F5F5" align="center"><xsl:eval>formatIndex(childNumber(this),"1")</xsl:eval></td>
<td width="193" height="16" bgcolor="#F5F5F5" align="center"><font size="2" face="宋体"><xsl:value-of select="@TCODE"/></font></td>
</tr>
</xsl:for-each>
</table></td>
</tr>
<tr>
<td height="380"></td>
</tr>
</table></td>
</tr>
</table>
</form>
</xsl:template>
</xsl:stylesheet>

要实现在多行的表格旁加上滚动条,而不是用ie的滚动条来浏览数据,该怎么做呢?
...全文
44 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
saucer 2003-06-30
  • 打赏
  • 举报
回复
surround your table with

<div style="overflow:auto; height:400">
...

</div>

8,906

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧