jQuery:基于div溢出的递归分页符

发布于 2024-11-29 12:53:48 字数 262 浏览 2 评论 0原文

我想知道是否可以运行一个递归函数,将源中的 html 放入 div 中,一旦 div 达到溢出,就会创建一个新的 div。重复该过程直至完成。

本质上,我试图从解析的 xml 创建一个文档查看器,但是,找到插入“分隔符”或分页符的正确位置似乎比最初预期的要困难一些。非常感谢任何建议。

此外,如果有人知道处理 XML 并将其解析为“文档”查看器的 jQuery 插件,请随意发表评论。再次感谢。 :3

I would like to know if it is possible to run a recursive function which places html from a source into a div, and once the div reaches overflow, creates a new div. Repeating the process until complete.

Essentially, I am trying to create a document viewer from parsed xml, however, finding the the right place to insert a "separator" or page break seems a little more difficult than first anticipated. Any word of advice are very much appreciated.

Additionally, if anybody knows a jQuery plugin which handles XML and parses it into a "document" viewer, than feel free to comment. Thanks again. :3

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文