0
我的关于在网页上正确布置文本的其他问题。我想编写RSS代码,然后使用XSL将RSS格式化为HTML 我的问题:与XSL中的文字布局和边距有关的问题
为什么ITEM DESCRIPTION的文本不在网页的页边空白处?如何强制这段文字保持在边缘内? Run out of margin http://i40.photobucket.com/albums/e236/ngquochung86/somemargin.jpg
我的XML代码:
<channel>
.......
<description>
CHANNEL DESCRIPTION: Website of New York Times
</description>
<item>
<title>
ITEM TITLE:YouTube and Universal to Create a Hub for Music
</title>
<link>
<a href="http://www.nytimes.com/2009/04/10/technology/internet/10google.html?ref=technology"/>
</link>
<description>
CHANNEL DESCRIPTION: The agreement is an effort by YouTube, which is owned by Google, to put more professionally produced content in front of its huge audience, and in turn, earn more money from advertising.
</description>
</item>
我的XSL代码:
<span class="channelDescription"> <xsl:value-of select="channel/description"/></span>
<xsl:for-each select="channel/item">
<span class="itemTitle"><xsl:value-of select="title"/></span>
<span class="itemLink"><xsl:value-of select="link"/></span>
<span class="itemDescription"><xsl:value-of select="description"/></span>
</xsl:for-each>
你可以帮我吗?谢谢
这是一个真正的CSS问题。它很容易看到简单的HTML生成,并将XSL排除在等式之外。但是,您不会向我们展示用于格式化HTML的CSS。 – AnthonyWJones 2009-04-11 14:51:34