我试图为用户提供一个链接,让他们使用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文件似乎没有任何与其关联的样式信息。文档树如下所示。
...then一整串代码。
有什么办法解决这个问题吗?
发布于 2013-08-08 22:45:22
与其说这是一个错误,不如说它是关于您的提要将如何显示的说明。它让您知道您的提要没有被样式化,而是以原始形式输出。这不一定是“坏”,因为它仍将作为一个RSS提要工作。就不会那么漂亮了。比较:http://news.google.com/?output=rss (没有样式的有效RSS提要)和http://feeds.bbci.co.uk/news/rss.xml?edition=int (样式RSS)
发布于 2013-08-08 22:40:47
您正在关闭</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中,提要的处理要顺利得多。
https://stackoverflow.com/questions/18137365
复制相似问题