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

关于长页面的高度问题 #5

Closed
claire1028 opened this issue Jan 15, 2016 · 3 comments
Closed

关于长页面的高度问题 #5

claire1028 opened this issue Jan 15, 2016 · 3 comments

Comments

@claire1028
Copy link

No description provided.

@claire1028 claire1028 changed the title "-webkit-overflow-scrolling: touch; 关于长页面的高度问题 Jan 15, 2016
@claire1028
Copy link
Author

“-webkit-overflow-scrolling: touch;” 必须要给它一个固定的超出屏幕的高度才会出现滚动条,那如果我的某一个页面的内容是动态的,有时候可能没超出屏幕大小,所以就不需要滚动条,可有时候内容很长的话就需要滚动条出现,这个改怎么办呢?

@littledu
Copy link
Member

这一个没办法,在这种滚动的页面里面,我需要知道一个确切的高度来判断是不是长页面,你的内容不固定,只能在调用 pageSlider 之前,先自己动态计算一下这个内容的长度,然后再调用 pageSlider

@claire1028
Copy link
Author

好的,感谢了

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

2 participants