0

我正在尝试为用户提供一个链接,以使用 RSS Feed 订阅我的博客。

<div id="rss_link" style="margin-left:35%; margin-right:20%; width:10em;">
<a href="http://therearenoroads.com/feed">
<img style="width:90px; height:90px;" src="http://blog.sironaconsulting.com/.a/6a00d8341c761a53ef0120a7abc384970b-120wi" alt="RSS   Link" />
</div>
<p style="font-size:1.3em; text-align:center;">Feed of TANR Knowledge</p>
</a>

这是链接上出现的错误...

此 XML 文件似乎没有任何与之关联的样式信息。文档树如下所示。

...然后一大堆代码。

这个问题可能出在哪里?

4

2 回答 2

1

这与其说是错误,不如说是关于如何呈现您的提要的注释。它让您知道您的提要没有设置样式,而是以原始形式输出。这不一定是“坏的”,因为它仍然可以作为 RSS 提要。它不会那么漂亮。比较:http ://news.google.com/?output= rss(没有样式的有效 RSS 提要)与http://feeds.bbci.co.uk/news/rss.xml?edition=int(样式 RSS )

于 2013-08-08T22:45:22.633 回答
1

你正在关闭</div>你的<a>元素。你可能想要这样的东西:

<div id="rss_link" style="margin-left:35%; margin-right:20%; width:10em;">
    <a href="http://therearenoroads.com/feed">
        <img style="width:90px; height:90px;" src="http://blog.sironaconsulting.com/.a/6a00d8341c761a53ef0120a7abc384970b-120wi" alt="RSS   Link" />    
        <p style="font-size:1.3em; text-align:center;">Feed of TANR Knowledge</p>
    </a>
</div>

此外,当您单击大多数 rss 提要时,这也会在 chrome 中发生,因为它没有 rss 订阅小部件。在 Firefox 中,Feed 的处理更加顺畅。

于 2013-08-08T22:40:47.287 回答