印刷问题 [英] Printing Question

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

问题描述






我的网页有一些下拉菜单。一旦用户选择了

选项,就会填充页面的下半部分。当那个

发生时,我想在隐藏的div中创建一个格式化的报告。当用户点击打印按钮时,我只想打印那个隐藏的

报告......


有谁可以帮我这个?


谢谢!!


John


Hi,

I have a web page with some drop downs. Once the user makes his
selections the bottom half of the page is populated. When that
happens, I want to create a formatted report in a hidden div. When
the user clicks the print button, I want to print only that hidden
report......

Can anyone help me with this?

Thanks!!

John

推荐答案



" Mtek" < mt ** @ mtekusa.com写信息

新闻:80 **************************** ****** @ e53g2000 hsa.googlegroups.com ...

"Mtek" <mt**@mtekusa.comwrote in message
news:80**********************************@e53g2000 hsa.googlegroups.com...

>




我有一个带有一些下拉菜单的网页。一旦用户选择了

选项,就会填充页面的下半部分。当那个

发生时,我想在隐藏的div中创建一个格式化的报告。当用户点击打印按钮时,我只想打印那个隐藏的

报告......


有人可以帮我这个吗?


谢谢!!


John
>
Hi,

I have a web page with some drop downs. Once the user makes his
selections the bottom half of the page is populated. When that
happens, I want to create a formatted report in a hidden div. When
the user clicks the print button, I want to print only that hidden
report......

Can anyone help me with this?

Thanks!!

John



不需要javascript;使用css


no need for javascript; use css


6月13日晚上8:08,Tim B < nos ... @ someisp.cawrote:
On Jun 13, 8:08 pm, "Tim B" <nos...@someisp.cawrote:

" Mtek" < m ... @ mtekusa.com写信息


新闻:80 *********************** *********** @ e53g2000 hsa.googlegroups.com ...
"Mtek" <m...@mtekusa.comwrote in message

news:80**********************************@e53g2000 hsa.googlegroups.com...


Hi,


我有一个带有一些下拉菜单的网页。一旦用户选择了

选项,就会填充页面的下半部分。当那个

发生时,我想在隐藏的div中创建一个格式化的报告。当用户点击打印按钮时,我想只打印那个隐藏的

报告......
I have a web page with some drop downs. Once the user makes his
selections the bottom half of the page is populated. When that
happens, I want to create a formatted report in a hidden div. When
the user clicks the print button, I want to print only that hidden
report......


任何人都可以帮我这个吗?
Can anyone help me with this?


谢谢!!
Thanks!!


John
John



不需要javascript;使用css


no need for javascript; use css



我将不得不阅读一下如何使用CSS ......我有点新鲜。

总是做旧时尚的事情.....


所以,你说用CSS我可以隐藏div,有

报告使用正确的数据格式化,并打印而不打开

另一个窗口??


John

I''ll have to read a bit on how to the CSS.....I''m a bit new at that.
Always did things the old fashion way.....

So, you''re saying that with CSS I can keep the div hidden, have the
report formatted with the proper data, and print it without opening
another window??

John




" Mtek" < mt ** @ mtekusa.com写信息

新闻:28 **************************** ****** @ f63g2000 hsf.googlegroups.com ...

"Mtek" <mt**@mtekusa.comwrote in message
news:28**********************************@f63g2000 hsf.googlegroups.com...

6月13日晚上8:08,Tim B < nos ... @ someisp.cawrote:
On Jun 13, 8:08 pm, "Tim B" <nos...@someisp.cawrote:

" Mtek" < m ... @ mtekusa.com写信息
"Mtek" <m...@mtekusa.comwrote in message



news:80 *************** ******************* @ e53g2000 hsa.googlegroups.com ...

news:80**********************************@e53g2000 hsa.googlegroups.com...







Hi,


我有一个网页有一些下拉菜单。一旦用户选择了

选项,就会填充页面的下半部分。当那个

发生时,我想在隐藏的div中创建一个格式化的报告。当用户点击打印按钮时,我想只打印那个隐藏的

报告......
I have a web page with some drop downs. Once the user makes his
selections the bottom half of the page is populated. When that
happens, I want to create a formatted report in a hidden div. When
the user clicks the print button, I want to print only that hidden
report......


任何人都可以帮我这个吗?
Can anyone help me with this?


谢谢!!
Thanks!!


John
John



不需要javascript;使用css

no need for javascript; use css



我将不得不读一下如何使用CSS ......我有点新鲜。

总是做旧时尚的事情.....


所以,你说用CSS我可以隐藏div,有

报告使用正确的数据格式化,并打印而不打开

另一个窗口??


John


I''ll have to read a bit on how to the CSS.....I''m a bit new at that.
Always did things the old fashion way.....

So, you''re saying that with CSS I can keep the div hidden, have the
report formatted with the proper data, and print it without opening
another window??

John



是的。事实上你可能根本没有隐藏的div,你可以只是打印

当你打印时隐藏页面的其余部分

如何做到这一点,看看media =" print" link标签的属性,如下:

< link rel =" stylesheet"类型= QUOT;文本/ CSS" HREF =" print.css"媒体= QUOT;打印" />


这里有一个例子:
http://webdesign.about.com/cs/css/a/aa042103a.htm


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

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