Home  >  Article  >  Web Front-end  >  js div 内容显示分页_html/css_WEB-ITnose

js div 内容显示分页_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:51:551045browse

由于工作需要 

  div固定大小 而内容不定 所以 如果内容过多自然就显示不出来了 所以 需要分页一类的功能下面是代码

根据div高度判断分页的代码
内容 内容 很多很多内容
分页 页数

  其实 就是 在计算 div的显示高度 和内容高度  获得到一共多少页      显示的第几页也就是 从多少像素开始显示而已

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn