在 iPhone 上呈现 HTML
我正在计划在 Iphone 上使用 ePub/HTML 渲染系统。我没有在这个平台上编程的经验,我想问一下在 iPhone 平台上开始这个主题的更好方法是什么。我想渲染 ePub,它是 HTML+CSS 子部分,但我不想要简单的网页视图 – 我需要与文本交互以及某种方式将下划线或其他内容添加到文本中 – 因为这个简单的 html 渲染控件不是足够的。谁能指出我从哪里开始寻找的正确方向?
I'm planning ePub/HTML rendering system on Iphone. I’m not experience in programming on this platform and I would like to ask what is the better way to start in this topic on IPhone platform. I would like to render ePub which is HTML+CSS subpart but I don’t want simple web page view – I need interaction with text and some way to add adorners like underline or others to text – because of this simple html rendering control is not enough. Can anyone point me in right direction where to start looking?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ePub 只不过是档案...其中嵌入了 HTML/CSS javascript。为了使这些交互正常工作,您需要它将其呈现在 Web 视图上。
您可能需要遵循一些 javascript css html 的“编码规则”,才能获得带有下划线的良好交互体验以及所有这些...
如果您正在寻找自己的 ePub 阅读应用程序
你可以看看这个...
我正在通过解压缩 ePub 来渲染它,然后在 UIwebView 中渲染内容。
我正在努力寻找一种更具活力的方法。但这应该可以帮助您开始..
https://github.com/zeroCoder1/Epub-Reader
ePubs are nothing but archives... where HTML/CSS javascript is embedded into it.. For those interactions to work you would need it to render it on a webview.
There are some "coding rules" with javascript css html you might need to follow to have a nice interactive experience with underlining of text and all that...
If you are looking for an own ePub reading app
You can have a look at this...
I am rendering an ePub by unzipping it and then rendering the contents in an UIwebView.
I am working on finding a more dynamic approach. But this should get you started..
https://github.com/zeroCoder1/Epub-Reader