Office中国论坛/Access中国论坛
标题:
[建议]管理员更新动网模版以支持IE7
[打印本页]
作者:
lupo
时间:
2007-4-22 22:03
标题:
[建议]管理员更新动网模版以支持IE7
<DIV>
随着使用IE7的网友越来越多,论坛在IE7下无法完全显示帖子的问题必将日渐突出,据查,是ie7修正了css标准导致。目前,碰到过长的帖子,我只能使用查看源码的方法浏览,非常不便,望管理员尽快更新动网模版。
建议直接去下载最新动网标准模板,因为不只这一个问题,还有其他
IE7
下的问题
以下为网络搜索到的解决方法:
动网论坛在
ie7
下贴子显示不全的解决办法
在风格模板page_dispbbs中找到以下代码:
<!--判断是否是IE,生成相应的style和class--><br />
<xsl:variable name="postclass"><br /><xsl:choose><br />
<xsl:when test="<a href="[url=http://www.xlzg.net/bbs/mailtpost/agent/@browser='Microsoft%22%3Epost/agent/@browser='Microsoft%3C/a]mailtpost/agent/@browser='Microsoft">post/agent/@browser='Microsoft</a[/url]> Internet Explorer'">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="<a href="[url=http://www.xlzg.net/bbs/mailtpost/agent/@browser='Microsoft%22%3Epost/agent/@browser='Microsoft%3C/a]mailtpost/agent/@browser='Microsoft">post/agent/@browser='Microsoft</a[/url]> Internet Explorer'">height:200px;width:97%;padding-right:0px; overflow-x: hidden;</xsl:when><br />
<xsl
therwise>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="[url=http://www.xlzg.net/bbs/mailtpost/agent/@browser='Microsoft]post/agent/@browser='Microsoft[/url] 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="[url=http://www.xlzg.net/bbs/mailtpost/agent/@browser='Microsoft]post/agent/@browser='Microsoft[/url] 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 -->
作者:
yy2000sh
时间:
2007-4-22 22:09
支持!
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/)
Powered by Discuz! X3.3