如何打印JScrollPane的完整内容? [英] How to print a full content of JScrollPane?

查看:121
本文介绍了如何打印JScrollPane的完整内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是一名设计师,并且不了解javascript,无法弄清楚如何打印JScrollPane的完整内容,而不是它的可见部分。
我非常感谢对此问题的任何帮助。
谢谢!

I am just a designer and don't know javascript well enough to figure out how to print a full content of a JScrollPane, not a visible part of it. I would very much appreciate any help with the issue. Thanks!

推荐答案

我建议创建一个包含以下规则的打印样式表:

I'd suggest creating a print-stylesheet that contains following rules:

div.jScrollPaneContainer {
   position: static !important;
   height: auto !important;
   overflow: visible !important;
}

div.jScrollPaneContainer > * {
   display: none !important;
}

div.scroll-pane {
   position: static !important;
   display: block !important;
   float: none !important;
}

上面代码中使用的所有选择器都对应于 jScrollPane基本示例

all selectors used in the code above correspond to HTML structure of jScrollPane basic example

这篇关于如何打印JScrollPane的完整内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆