沙坪小师吧-新址spjyz.gzpwh.com
标题:
动网论坛在IE7下贴子显示不全的解决办法
[打印本页]
作者:
admin
时间:
2008-3-25 23:25
标题:
动网论坛在IE7下贴子显示不全的解决办法
<p>自己留用的</p><p><span class="tpc_content">这个问题,不是要IE7来适应动网论坛,而是要动网论坛的管理员修改论坛程序,去适应IE7。<br/><br/>修改程序很简单:<br/>在风格模板page_dispbbs中找到以下代码:<font color="#3333ff"><br/><br/><!--判断是否是IE,生成相应的style和class--><br /><br/><xsl:variable name="postclass"><br /><xsl:choose><br /><br/><xsl:when test="<a href="mailtpost/agent/@browser='Microsoft">post/agent/@browser='Microsoft</a> Internet Explorer'">postie</xsl:when><br /><br/><xsl
therwise>post</xsl
therwise><br /><br/></xsl:choose><br /></xsl:variable><br /><br/><xsl:variable name="bodystyle"><br /><br/><xsl:choose><br /><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 /><br/><xsl
therwise>min-height:200px;</xsl
therwise><br /><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;<br/></xsl:variable><br /><br/><!--end --><br/></font><br/>替换为:<br/><font color="#ff0000"><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
therwise>post</xsl
therwise><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
therwise>min-height:200px;</xsl
therwise><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/></font><br/><br/>OK!会员已经能够使用IE7浏览你的论坛了。</span></p>
欢迎光临 沙坪小师吧-新址spjyz.gzpwh.com (http://spjyz.liszq.com/)
Powered by Discuz! X1