Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

把一大段文章分隔成多页有什么好办法么 #33

Open
pakey opened this issue Nov 17, 2017 · 7 comments
Open

把一大段文章分隔成多页有什么好办法么 #33

pakey opened this issue Nov 17, 2017 · 7 comments

Comments

@pakey
Copy link

pakey commented Nov 17, 2017

如题

@zhangbobell
Copy link
Collaborator

你说的文章是什么形式的?

@pakey
Copy link
Author

pakey commented Nov 17, 2017

比如说小说 比如说整篇的文章
分成多个页面供这个插件做翻页调用

@zhangbobell
Copy link
Collaborator

整篇文章可以看做一个字符串,你可以用 js 将这个字符串分成一个数组的若干个元素,将这个数组作为 data 配置项即可。

@pakey
Copy link
Author

pakey commented Nov 20, 2017

尝试写了,效果不好
比如文章有段落的关系,还有标点符号
在最后一行这里总是有一些小瑕疵

@zhangbobell
Copy link
Collaborator

你的需求是段落不能跨页?

@roy-lau
Copy link

roy-lau commented May 4, 2018

最起码一句话不能分割成两页吧!

@Gala-1024
Copy link

Gala-1024 commented Jul 17, 2018

1:小说如果是横向切换比较简单的做法用css3_column-width,然后自己判断手势处理transform过渡动画;

2:按照 @zhangbobell 说的那样,小说数据需要自己处理好,放进一个数组里面,将这个数组作为 data 配置项即可,文字的处理可以参考这个:https://github.com/maplejan/APOMW

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants