查看: 2309|回复: 0

管理员改下动网论坛滴代码吧

[复制链接]
发表于 2006-7-12 00:10 | 显示全部楼层 |阅读模式
<P>我使用滴IE7 看长帖子下面都显示不完全</P>
<P>我在网上找了解决办法...</P>

<P>在风格模板page_dispbbs中找到以下代码:</P>
<DIV class=quote>
<P>&lt;!--判断是否是IE,生成相应的style和class--&gt;&lt;br /&gt;<BR>&lt;xsl:variable name="postclass"&gt;&lt;br /&gt;&lt;xsl:choose&gt;&lt;br /&gt;<BR>  &lt;xsl:when test="&lt;a href="<a href="mailto:post/agent/@browser='Microsoft%22%3Epost/agent/@browser='Microsoft%3C/a" target="_blank" ><FONT color=#000000>mailto:post/agent/@browser='Microsoft"&gt;post/agent/@browser='Microsoft&lt;/a</FONT></A>&gt; Internet Explorer'"&gt;postie&lt;/xsl:when&gt;&lt;br /&gt;<BR>  &lt;xsl:otherwise&gt;post&lt;/xsl:otherwise&gt;&lt;br /&gt;<BR>&lt;/xsl:choose&gt;&lt;br /&gt;&lt;/xsl:variable&gt;&lt;br /&gt;<BR>&lt;xsl:variable name="bodystyle"&gt;&lt;br /&gt;<BR>&lt;xsl:choose&gt;&lt;br /&gt;<BR>  &lt;xsl:when test="&lt;a href="<a href="mailto:post/agent/@browser='Microsoft%22%3Epost/agent/@browser='Microsoft%3C/a" target="_blank" ><FONT color=#000000>mailto:post/agent/@browser='Microsoft"&gt;post/agent/@browser='Microsoft&lt;/a</FONT></A>&gt; Internet Explorer'"&gt;height:200px;width:97%;padding-right:0px; overflow-x: hidden;&lt;/xsl:when&gt;&lt;br /&gt;<BR>  &lt;xsl:otherwise&gt;min-height:200px;&lt;/xsl:otherwise&gt;&lt;br /&gt;<BR>&lt;/xsl:choose&gt;font-size:&lt;xsl:value-of select="&lt;a href="<a href="mailto:post/setting/@fontsize%22%3Epost/setting/@fontsize%3C/a" target="_blank" ><FONT color=#000000>mailto:post/setting/@fontsize"&gt;post/setting/@fontsize&lt;/a</FONT></A>&gt;" /&gt;pt;line-height:&lt;xsl:value-of select="&lt;a href="<a href="mailto:post/setting/@lineheight%22%3Epost/setting/@lineheight%3C/a" target="_blank" ><FONT color=#000000>mailto:post/setting/@lineheight"&gt;post/setting/@lineheight&lt;/a</FONT></A>&gt;" /&gt;;text-indent:&lt;xsl:value-of select="&lt;a href="<a href="mailto:post/setting/@indent%22%3Epost/setting/@indent%3C/a" target="_blank" ><FONT color=#000000>mailto:post/setting/@indent"&gt;post/setting/@indent&lt;/a</FONT></A>&gt;" /&gt;px;<BR>&lt;/xsl:variable&gt;&lt;br /&gt;<BR>&lt;!--end --&gt;</P></DIV>
<P>替换为:</P>
<DIV class=quote>
<P>&lt;!--判断是否是IE,生成相应的style和class--&gt;<BR>&lt;xsl:variable name="postclass"&gt;<BR>&lt;xsl:choose&gt;<BR>  &lt;xsl:when test="<a href="mailto:post/agent/@browser='Microsoft" target="_blank" ><FONT color=#000000>post/agent/@browser='Microsoft</FONT></A> Internet Explorer' and not(<a href="mailto:post/agent/@version" target="_blank" ><FONT color=#000000>post/agent/@version</FONT></A> &gt; 6 ) "&gt;postie&lt;/xsl:when&gt;<BR>  &lt;xsl:otherwise&gt;post&lt;/xsl:otherwise&gt;<BR>&lt;/xsl:choose&gt;<BR>&lt;/xsl:variable&gt;<BR>&lt;xsl:variable name="bodystyle"&gt;<BR>&lt;xsl:choose&gt;<BR>  &lt;xsl:when test="<a href="mailto:post/agent/@browser='Microsoft" target="_blank" ><FONT color=#000000>post/agent/@browser='Microsoft</FONT></A> Internet Explorer' and not(<a href="mailto:post/agent/@version" target="_blank" ><FONT color=#000000>post/agent/@version</FONT></A> &gt; 6 )"&gt;height:200px;width:97%;padding-right:0px; overflow-x: hidden;&lt;/xsl:when&gt;<BR>  &lt;xsl:otherwise&gt;min-height:200px;&lt;/xsl:otherwise&gt;<BR>&lt;/xsl:choose&gt;font-size:&lt;xsl:value-of select="<a href="mailto:post/setting/@fontsize" target="_blank" ><FONT color=#000000>post/setting/@fontsize</FONT></A>" /&gt;pt;line-height:&lt;xsl:value-of select="<a href="mailto:post/setting/@lineheight" target="_blank" ><FONT color=#000000>post/setting/@lineheight</FONT></A>" /&gt;;text-indent:&lt;xsl:value-of select="<a href="mailto:post/setting/@indent" target="_blank" ><FONT color=#000000>post/setting/@indent</FONT></A>" /&gt;px;&lt;/xsl:variable&gt;<BR>&lt;!--end --&gt;</P></DIV>
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|Archiver|爆棚小组 PlayGM论坛

GMT+8, 2024-11-18 09:37 , Processed in 0.022370 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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