<p>主要是DVBBS7.1.0跟IE7.0之间的问题。</p><p>解决方案:</p><p>1.更改论坛HTML代码</p><p>2.使用IE6或者firefox等,好像Maxthon也有问题</p><p>编程老师,这个供参考(是网上搜来的):</p><p>使论坛在IE7中正常浏览的办法。在风格模板page_dispbbs中找到以下代码: <br/><br/><br/><!--判断是否是IE,生成相应的style和class--><br /> <br/><xsl:variable name="postclass"><br /><xsl:choose><br /> <br/><xsl:when test="<a href="mailto:post/agent/@browser='Microsoft">post/agent/@browser='Microsoft</a> Internet Explorer'">postie</xsl:when><br /> <br/><xsl:otherwise>post</xsl:otherwise><br /> <br/></xsl:choose><br /></xsl:variable><br /> <br/><xsl:variable name="bodystyle"><br /> <br/><xsl:choose><br /> <br/><xsl:when test="<a href="mailto:post/agent/@browser='Microsoft">post/agent/@browser='Microsoft</a> Internet Explorer'">height:200px;width:97%;padding-right:0px; overflow-x: hidden;</xsl:when><br /> <br/><xsl:otherwise>min-height:200px;</xsl:otherwise><br /> <br/></xsl:choose>font-size:<xsl:value-of select="<a href="mailto:post/setting/@fontsize">post/setting/@fontsize</a>" />pt;line-height:<xsl:value-of select="<a href="mailto:post/setting/@lineheight">post/setting/@lineheight</a>" />;text-indent:<xsl:value-of select="<a href="mailto:post/setting/@indent">post/setting/@indent</a>" />px; <br/></xsl:variable><br /> <br/><!--end --></p><p><br/><br/>替换为: <br/></p><div class="code"><br/><!--判断是否是IE,生成相应的style和class--> <br/><xsl:variable name="postclass"> <br/><xsl:choose> <br/><xsl:when test="post/agent/@browser='Microsoft Internet Explorer' and not(post/agent/@version > 6 ) ">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="post/agent/@browser='Microsoft Internet Explorer' and not(post/agent/@version > 6 )">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="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> <br/><!--end --> <br/></div>
[此贴子已经被作者于2007-3-8 23:21:40编辑过]
|