Office中國(guó)論壇/Access中國(guó)論壇

 找回密碼
 注冊(cè)

QQ登錄

只需一步,快速開(kāi)始

返回列表 發(fā)新帖
查看: 2412|回復(fù): 1
打印 上一主題 下一主題

[其它] [建議]管理員更新動(dòng)網(wǎng)模版以支持IE7

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
1#
發(fā)表于 2007-4-22 22:03:00 | 只看該作者 回帖獎(jiǎng)勵(lì) |倒序?yàn)g覽 |閱讀模式
<DIV>







隨著使用IE7的網(wǎng)友越來(lái)越多,論壇在IE7下無(wú)法完全顯示帖子的問(wèn)題必將日漸突出,據(jù)查,是ie7修正了css標(biāo)準(zhǔn)導(dǎo)致。目前,碰到過(guò)長(zhǎng)的帖子,我只能使用查看源碼的方法瀏覽,非常不便,望管理員盡快更新動(dòng)網(wǎng)模版。建議直接去下載最新動(dòng)網(wǎng)標(biāo)準(zhǔn)模板,因?yàn)椴恢贿@一個(gè)問(wèn)題,還有其他IE7下的問(wèn)題以下為網(wǎng)絡(luò)搜索到的解決方法:

動(dòng)網(wǎng)論壇在ie7下貼子顯示不全的解決辦法





在風(fēng)格模板page_dispbbs中找到以下代碼:





<!--判斷是否是IE,生成相應(yīng)的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,生成相應(yīng)的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#
發(fā)表于 2007-4-22 22:09:00 | 只看該作者
支持!
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則

QQ|站長(zhǎng)郵箱|小黑屋|手機(jī)版|Office中國(guó)/Access中國(guó) ( 粵ICP備10043721號(hào)-1 )  

GMT+8, 2024-10-23 10:19 , Processed in 0.112610 second(s), 25 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回復(fù) 返回頂部 返回列表