将bootstrap.css/js应用于Epub文件

Apply bootstrap.css/js ot Epub file

本文关键字:应用于 Epub 文件 js bootstrap css      更新时间:2023-09-26

我使用Epub.js在web浏览器中渲染Epub文件。但我需要在书中使用引导风格(也需要弹出窗口)。这可能吗?非常感谢。

我找到了解决方案。Epub 3格式有注释。

<p>This sentence contains a <a href="#note" epub:type="noteref">commented phrase</a>.
</p>
<aside id="note" epub:type="footnote">This is the comment.</aside>

epub.js没有隐藏<aside>,然后我在epub stylesheet.css 中设置

aside { 
    visibility: hidden;
}

现在它正常工作。