Search code examples
javascripttwitter-bootstraptwitter-bootstrap-3epub

Apply bootstrap.css/js ot Epub file


I use Epub.js for render epub files in web-browser. But I need use bootstrap styles in book(also needed popovers). Is this possible? Thank You!


Solution

  • I found solution. Epub 3 format has the annotation.

    <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>
    

    The epub.js wasn't hide <aside> then I set in epub stylesheet.css

    aside { 
        visibility: hidden;
    }
    

    and now it working normally.