简体   繁体   English

外部链接在ibook中不起作用

[英]External links are not working in ibooks

Is there any way to add external link as an item in opf file? 有什么办法可以将外部链接添加为opf文件中的项? Or is it possible to embed external web page in ibooks? 还是可以在ibook中嵌入外部网页? I tried to add 我试图添加

<item id="extlink" href="http://example.com/link.html" media-type="application/xhtml+xml" properties="online-resource"/> <item id =“ extlink” href =“ http://example.com/link.html” media-type =“ application / xhtml + xml” properties =“在线资源” />

as an item in opf file and i am getting "resource missing" error in ipad. 作为OPF文件中的一项,我在iPad中收到“缺少资源”错误。 Please help. 请帮忙。

All the assets of an EPUB must be contained inside the EPUB container. EPUB的所有资产必须包含在EPUB容器内。

The only exceptions are for audio/video files (see eg http://www.pigsgourdsandwikis.com/2013/05/linking-to-external-video-and-audio-in.html ) 唯一的例外是音频/视频文件(请参阅例如http://www.pigsgourdsandwikis.com/2013/05/linking-to-external-video-and-audio-in.html

Also note that the correct property is remote-resources , not online-resource (see http://www.idpf.org/epub/30/spec/epub30-publications-20110523.html#sec-resource-locations ) 另请注意,正确的属性是remote-resources ,而不是online-resource (请参阅http://www.idpf.org/epub/30/spec/epub30-publications-20110523.html#sec-resource-locations

You can still add links to the XHTML pages inside the EPUB, pointing to your external page. 您仍然可以在EPUB内部添加指向XHTML页面的链接,指向您的外部页面。 If clicked, the system browser will be triggered and it will load them (if an Internet connection is available). 如果单击,将触发系统浏览器并加载它们(如果有Internet连接)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM