1

我正在修改我购买的电子书。我遇到了 epubcheck 发现的错误。错误是:

/path/to/ebook/file.html(43,53): element "blockquote" not allowed here; expected the element end-tag, text or element "a", "abbr", "acronym", "applet", "b", "bdo", "big", "br", "cite", "code", "del", "dfn", "em", "i", "iframe", "img", "ins", "kbd", "map", "noscript", "ns:svg", "object", "q", "samp", "script", "small", "span", "strong", "sub", "sup", "tt" or "var" (with xmlns:ns="http://www.w3.org/2000/svg")

有问题的文件行43如下所示:

<h4 class="calibre41"><blockquote class="calibre42"><span class="calibre2">SUGGESTIONS FOR GETTING THE MOST FROM YOUR STUDY OF THE SCRIPTURES AND OF THIS COMPANION VOLUME</span></blockquote></h4><div class="calibre43"> </div>

我收到很多类似的消息,但我不知道它们是什么意思。有人可以帮助我了解这条线有什么问题,以便我可以修复它(以及许多其他问题)吗?

谢谢!

4

1 回答 1

2

<blockquote>标签内不允许有标签<h4>。此规则通常适用于 HTML,而不仅仅是 epub。更改标记以使其有效,方法是替换<blockquote>为允许的标记之一,或将其删除。注意:如果您不保留该class属性,您可能会丢失一些 CSS 样式。<blockquote>如果标签是明确的样式,你可能会丢失它。

于 2012-05-10T04:36:53.870 回答