机器人的WebView文字切割机器人、文字、WebView

由网友(〤twinkle゛青春)分享简介:什么是加载的HTML的web视图不切断端线的最佳方式。多余的文本将进入下一个页面。我的WebView用书状分页。我使用的scrollTo()移动到下一个页面。垂直滚动被禁用。我觉得做这件事工作的唯一方法是使用Java脚本。我已经尝试了一切就像地心引力,填充等,并没有什么作品。任何帮助将是非常美联社preciated...

什么是加载的HTML的web视图不切断端线的最佳方式。多余的文本将进入下一个页面。我的WebView用书状分页。我使用的scrollTo()移动到下一个页面。垂直滚动被禁用。我觉得做这件事工作的唯一方法是使用Java脚本。我已经尝试了一切就像地心引力,填充等,并没有什么作品。任何帮助将是非常美联社preciated。

What is the best way to load the html to the webview without cutting the end lines. That excess text will go to the next page. My webview is using book like pagination. I am using scrollTo() to move to the next page. Vertical scrolling is disabled. I think the only way to make this thing work is to use java script. I have tried everything like gravity,padding etc and nothing works. Any help will be very much appreciated.

编辑: 我还添加了手势听众。当用户刷卡web视图滚动到像一本书的下一个页面。

I also added gesture listener. When user swipes the webview scrolls to the next page like a book.

推荐答案

请点击此链接http://www.pixeldock.com/blog/set-the-height-of-a-uiwebview-to-the-height-of-its-html-content/这是如何解决这个问题的确切方式

Follow this link http://www.pixeldock.com/blog/set-the-height-of-a-uiwebview-to-the-height-of-its-html-content/ this is the exact way how you can solve this

阅读全文

相关推荐

最新文章