风格模板page_dispbbs中找到以下代码:
<!--判断是否是IE,生成相应的style和class--><br /><xsl:variable name="postclass"><br /><xsl:choose><br /> <xsl:when test="<a href="mailtpost/agent/@browser='Microsoft">post/agent/@browser='Microsoft</a> Internet Explorer'">postie</xsl:when><br /> <xsl:otherwise>post</xsl:otherwise><br /></xsl:choose><br /></xsl:variable><br /><xsl:variable name="bodystyle"><br /><xsl:choose><br /> <xsl:when test="<a href="mailtpost/agent/@browser='Microsoft">post/agent/@browser='Microsoft</a> Internet Explorer'">height:200px;width:97%;padding-right:0px; overflow-x: hidden;</xsl:when><br /> <xsl:otherwise>min-height:200px;</xsl:otherwise><br /></xsl:choose>font-size:<xsl:value-of select="<a href="mailtpost/setting/@fontsize">post/setting/@fontsize</a>" />pt;line-height:<xsl:value-of select="<a href="mailtpost/setting/@lineheight">post/setting/@lineheight</a>" />;text-indent:<xsl:value-of select="<a href="mailtpost/setting/@indent">post/setting/@indent</a>" />px;</xsl:variable><br /><!--end -->
替换为:
<!--判断是否是IE,生成相应的style和class--><xsl:variable name="postclass"><xsl:choose> <xsl:when test="post/agent/@browser='Microsoft Internet Explorer' and not(post/agent/@version > 6 ) ">postie</xsl:when> <xsl:otherwise>post</xsl:otherwise></xsl:choose></xsl:variable><xsl:variable name="bodystyle"><xsl:choose> <xsl:when test="post/agent/@browser='Microsoft Internet Explorer' and not(post/agent/@version > 6 )">height:200px;width:97%;padding-right:0px; overflow-x: hidden;</xsl:when> <xsl:otherwise>min-height:200px;</xsl:otherwise></xsl:choose>font-size:<xsl:value-of select="post/setting/@fontsize" />pt;line-height:<xsl:value-of select="post/setting/@lineheight" />;text-indent:<xsl:value-of select="post/setting/@indent" />px;</xsl:variable><!--end -->