收藏本页
联系我们
论坛帮助

牛头网络技术论坛网管专区动网相关 → 动网论坛在IE7.0中显视不完整的解决方案只需修改模板

垃圾帖子的防止方法 动网水印问题 sql里的字符替换方法 2003安全设置大全 短信检测提交问题

  共有1848人关注过本帖树形打印

主题:动网论坛在IE7.0中显视不完整的解决方案只需修改模板

帅哥,在线噢!
牛头

  1楼


头衔:站长
金币:5059
经验:6148
金钱:9145
等级:管理员
文章:572
精华:10
加为好友
发送短信
个性首页
动网论坛在IE7.0中显视不完整的解决方案只需修改模板  发贴心情 Post By:2006-11-2 10:35:00 [只看该作者]

在风格模板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 -->



在线咨询技术 [牛头][早起的鸟儿有虫吃!]
 牛头软件下载站,站长工具下载 支持(0中立(0反对(0回到顶部
帅哥哟,离线,有人找我吗?
『44cn』

  2楼


头衔:
金币:0
经验:70
金钱:124
等级:新手上路
文章:160
精华:0
加为好友
发送短信
个性首页
  发贴心情 Post By:2006-11-2 11:58:00 [只看该作者]

好东西.收下...


 牛头软件下载站,站长工具下载 支持(0中立(0反对(0回到顶部
帅哥哟,离线,有人找我吗?
『sintra』

  3楼


头衔:
金币:0
经验:65
金钱:112
等级:新手上路
文章:208
精华:0
加为好友
发送短信
个性首页
  发贴心情 Post By:2006-12-6 16:22:00 [只看该作者]

好的,水一帖

 牛头软件下载站,站长工具下载 支持(0中立(0反对(0回到顶部
帅哥哟,离线,有人找我吗?
『xcj_1126』

  4楼


头衔:
金币:0
经验:81
金钱:135
等级:新手上路
文章:25
精华:0
加为好友
发送短信
个性首页
  发贴心情 Post By:2006-12-31 16:14:00 [只看该作者]

以下是引用牛头在2006-11-2 10:35:00的发言:

在风格模板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 -->

谢谢!


 牛头软件下载站,站长工具下载 支持(0中立(0反对(0回到顶部
帅哥,在线噢!
『guodun』

  5楼


头衔:
金币:0
经验:87
金钱:152
等级:新手上路
文章:3
精华:0
加为好友
发送短信
个性首页
  发贴心情 Post By:2008-12-2 12:38:47 [只看该作者]

谢谢/。

 牛头软件下载站,站长工具下载 支持(0中立(0反对(0回到顶部