这样写:
Main.htm
=======================
<html><head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<body>
<p>
<iframe name="I1" id="I1" src="Untitled2.xml" style="height:100"></iframe></p>
</body>
</html>noteclass.xsl
=================================
<?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312"/>
<title>note</title>
<link REL="Stylesheet" HREF="/style.css" TYPE="text/css"/>
<style>
textarea.content{
overflow-y:visible;
border:0px;
font-size:12px;
font-family:Fixedsys 宋体;
line-height:150%;
overflow:visible;
border-width:0px;
width:760px;
height:40px;
}
</style>
<script language="Javascript">
<xsl:comment><![CDATA[
function window.onload()
{
parent.document.all("I1").style.height=document.body.scrollHeight+15;
parent.document.all("I1").style.width=document.body.scrollWidth+10; }
]]></xsl:comment>
</script>
</head>
<body topmargin="0" leftmargin="0">
<xsl:for-each select="Replys/Reply">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse;TABLE-LAYOUT: fixed;" bordercolor="#111111" width="760">
<tr>
<td width="535" bgcolor="#F1F5FA" height="22" class="text7">
 回复人:
<xsl:value-of select="PostUserName"/>
</td>
<td width="235" bgcolor="#F1F5FA" height="22" class="text4">
<p align="center">
<xsl:value-of select="PostDateTime"/>
</p>
</td>
</tr>
<tr>
<td width="770" height="1" bgcolor="#0066CC" colspan="2"/>
</tr>
<tr>
<td width="770" height="10" colspan="2"/>
</tr>
</table>
</center>
</div>
<p align="center">
<textarea name="notearea" class="content" readonly="true">
<xsl:value-of select="Content"/>
</textarea>
</p>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Main.htm
=======================
<html><head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<body>
<p>
<iframe name="I1" id="I1" src="Untitled2.xml" style="height:100"></iframe></p>
</body>
</html>noteclass.xsl
=================================
<?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312"/>
<title>note</title>
<link REL="Stylesheet" HREF="/style.css" TYPE="text/css"/>
<style>
textarea.content{
overflow-y:visible;
border:0px;
font-size:12px;
font-family:Fixedsys 宋体;
line-height:150%;
overflow:visible;
border-width:0px;
width:760px;
height:40px;
}
</style>
<script language="Javascript">
<xsl:comment><![CDATA[
function window.onload()
{
parent.document.all("I1").style.height=document.body.scrollHeight+15;
parent.document.all("I1").style.width=document.body.scrollWidth+10; }
]]></xsl:comment>
</script>
</head>
<body topmargin="0" leftmargin="0">
<xsl:for-each select="Replys/Reply">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse;TABLE-LAYOUT: fixed;" bordercolor="#111111" width="760">
<tr>
<td width="535" bgcolor="#F1F5FA" height="22" class="text7">
 回复人:
<xsl:value-of select="PostUserName"/>
</td>
<td width="235" bgcolor="#F1F5FA" height="22" class="text4">
<p align="center">
<xsl:value-of select="PostDateTime"/>
</p>
</td>
</tr>
<tr>
<td width="770" height="1" bgcolor="#0066CC" colspan="2"/>
</tr>
<tr>
<td width="770" height="10" colspan="2"/>
</tr>
</table>
</center>
</div>
<p align="center">
<textarea name="notearea" class="content" readonly="true">
<xsl:value-of select="Content"/>
</textarea>
</p>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货