设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 2095|回复: 1
打印 上一主题 下一主题

[其它] [建议]管理员更新动网模版以支持IE7

[复制链接]
跳转到指定楼层
1#
发表于 2007-4-22 22:03:00 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
<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 />
  <xsltherwise>post</xsltherwise><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 />
  <xsltherwise>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 -->

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 分享淘帖 订阅订阅
2#
发表于 2007-4-22 22:09:00 | 只看该作者
支持!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-5-24 10:22 , Processed in 0.086826 second(s), 25 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表