jQuery:基于div溢出的递归分页符
我想知道是否可以运行一个递归函数,将源中的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能会帮助您
http://jparse.kylerush.net/
This might help you
http://jparse.kylerush.net/