在打印中遇到问题 [英] Getting Problem in Printing

查看:96
本文介绍了在打印中遇到问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的页面中有一个树视图,该树视图大约有50个节点,并且正在该树视图中创建滚动条,并且页面上有一个打印按钮.它具有JS命令window.print().

当我单击该按钮时,它只打印屏幕上可见的数据,而不是我们需要向下滚动的数据.

我在treeview div上应用了一个CSS,该CSS的属性为"Height:AUTO"

在该CSS的链接标记中,我给出了media ="print".

但这仍然给了我相同的结果.
当我进入该页面的源代码时,它已将该CSS应用于该div而不应用于数据.

有任何建议.

Thansk in Advance

Hi,

I have one treeview in my page which has around 50 nodes and it is creating scrollbar inside that treeview and i have one print button on my page. which has JS command window.print().

When i click on that button it just print the data which is visible on screen not that for which we need to scroll down.

I have applied one CSS on treeview div which has attribute "Height:AUTO"
and
In link tag of that CSS i given media="print".

But still it is giving me the same results.
When i go into the source of that page it has that CSS applied on that div but not on data.

Any suggestion.

Thansk in Advance

推荐答案

我希望您发布了一些图片来展示您的问题.
我想您的问题出在具有滚动条的div标签上.
在印刷媒体中,您应该更改div的样式.
我的意思是,当您要在div标签中打印数据时,它们必须没有滚动条.

关于Jamal
I wish you had published some pics to show your issue.
I guess your problem is for div tags which have scroll bars.
in print media you should change the style of divs .
I mean div tags must not have scroll bars when you want to print the data inside them.

Regards Jamal


这篇关于在打印中遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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