ACTV 亚琪电视

标题: [建议]关于IE7帖子不能显示完整的问题 [打印本页]

作者: 亦然    时间: 2010-4-27 09:36
标题: [建议]关于IE7帖子不能显示完整的问题

我看到也有其他人提这个问题了,换浏览器总不是个好法子,刚才我试了360、世界之窗,都不行。百度到一个法子,希望管理员看看有没有用。

动网论坛在ie7下贴子显示不全的解决办法

在风格模板page_dispbbs中找到以下代码:


<!--判断是否是IE,生成相应的style和class--><br />
<xsl:variable name="postclass"><br /><xsl:choose><br />
  <xsl:when test="<a href="mailto:post/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="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 />
  <xsl:otherwise>min-height:200px;</xsl:otherwise><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;
</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 -->


作者: 殷少东    时间: 2010-4-27 09:41

于是,,这方面我完全是小白。。。。。多谢楼主的热心帮助。。

我只能去找找神豚看看他有没有办法来鼓捣。。

羞愧ing


作者: seahog004    时间: 2010-4-27 11:43
看明白了,就是加个版本判断,晚上回去试试看
作者: 殷少东    时间: 2010-4-27 11:45
神豚果然是神豚啊。。我是一窍不通的说
作者: seahog004    时间: 2010-4-27 22:53
竟然被论坛防火墙拦截了,要联系客服orz
作者: seahog004    时间: 2010-4-27 23:05

好了试一下


作者: 苏絮儿    时间: 2010-4-28 03:41
我用IE8,页面也是乱糟糟的....
作者: 殷少东    时间: 2010-4-28 10:37

好了乜??

我找个人来试试看。。。。。我自己电脑万年不变的IE6,囧。。。。


作者: seahog004    时间: 2010-4-29 00:20

各个风格都改完了


作者: 殷少东    时间: 2010-4-29 09:52

海豚辛苦了。。。

终于解决了这个大问题了。。。






欢迎光临 ACTV 亚琪电视 (http://adamangie.org/) Powered by Discuz! X3.4