2014-01-24 17 views
1

我正在使用將圖像和標題插入ePub 3文件,順便說一句,我需要在標題中包含一個彈出式註釋。<figure> iBooks中的標籤行爲,單擊可放大?

下面是代碼:

<figure> 
    <div class="figures"> 
    <!-- ibooks doesnt read width in img class, has to warp in div --> 
    <img class="frame" src="image/01_fmt.jpeg" alt="..." /> 
    </div> 
    <figcaption> 
    <p class="imagegroup"><a epub:type="noteref" href="#n1" class="superscript">1</a></p> 
    <aside epub:type="footnote" id="n1"> 
     <p>pop up notes, <i>in italic text here</i>.</p> 
    </aside> 
    </figcaption> 
</figure> 

它運作良好,但是,我需要槍王圖片放大,有沒有可能,也許額外的標記可供將其更改爲一個水龍頭?

回答

1

在Epub3中沒有額外的標記(我知道)。我能想到的最簡單的(IE非JS)解決方案只是在錨標籤中有一個href,直接轉到圖像文件,或者在其上有一個圖像的xhtml頁面(這取決於哪個閱讀器應用程序是您的最終用戶在iBooks中,例如,您可以直接鏈接到圖像,但不能在Kindle中)。

希望這會有所幫助,很高興發佈JS解決方案,如果這是你感興趣的東西!

+1

謝謝Alex!爲了兼容性,我將堅持使用非JS。 –