私の他の質問は、ウェブページ上のテキストを正しくレイアウトすることです。 RSSコードを書いてから、RSSをHTMLにフォーマットするためにXSLを使いたいです。 私の質問:レイアウトとXSLのテキストの余白に関連する質問
なぜITEM DESCRIPTIONのテキストがWebページの余白から外れてしまったのですか?そのテキストを強制的にマージン内に維持するか? 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