2011-03-26 148 views

回答

0

由於HTML是僅佈局的,因此它與顯示RSS源無關。除非你想和蘋果一樣的佈局(我認爲你不需要)

你需要PHP,JavaScript或者甚至是Flash。

  1. PHP solution
  2. JavaScript solution
  3. Flash solution

挑選你的毒藥!

2

您可以使用XSLT和CSS。

如果你不關心工作鏈接等,那麼就使用CSS。

舉例來說,這裏是我的風格RSS之一是如何在我的網站的一個提要:

channel link, channel language, channel copyright, channel managingEditor, channel webMaster, channel docs, channel lastBuildDate, channel item pubDate {display:none;} 

rss {font-family:Arial, Helvetica, sans-serif;} 

channel title {display:block; padding:1em; color:#FFF; border-bottom:1px solid black; font-weight:bold;font-size:140%; background-color:#4483C7;} 

channel description {display:block; float:left; font-size:130%; margin:1em;} 

channel item {border:1px solid #4483c7;clear:both; display:block; padding:0.5em; margin:1em;} 

channel item title {background-color:#4483c7; border-bottom-width:0; color:#FFF; display:block; font-size:110%; font-weight:bold; margin:0; padding:0.2em;} 

channel item description {display: block; float:none; margin:0; text-align: left; padding:0.2em 0.5em 0.4em; color: black; font-size:100%; font-weight:normal;} 

channel item link {color:#666; display:block; font-size:86%; padding:0 0.5em;} 

結果是這樣的:http://www.ourladyofgrace.com/Bulletins/olg_bulletins.xml

如果你想在網頁「作品」 ,然後使用XSLT。

這是一些信息。 http://www.paulwest.co.uk/article.php/styling-rss-news-feeds-with-xslt