从用户控件打印div内容,而无需打开新窗口 [英] print div content from user control without opening a new window

查看:58
本文介绍了从用户控件打印div内容,而无需打开新窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在不打开新窗口的情况下打印div

i need to print div without open new window

推荐答案

您好,

您可以通过应用print-css样式并隐藏网站中所有不需要的部分来实现此目的.
这是一个小方法:
http://www.onextrapixel .com/2009/05/05/how-to-create-a-simple-print-css-for-your-site/ [
Hi,

You could achieve this by applying a print-css styling and hide all not needed parts of the website.
Here is a small howto:
http://www.onextrapixel.com/2009/05/05/how-to-create-a-simple-print-css-for-your-site/[^]

Hope this helps.

Best regards and happy coding,
Stops


这篇关于从用户控件打印div内容,而无需打开新窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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