打印页面尺寸减小时带有html控件的.aspx页面 [英] .aspx page with html controls when printing page size is decreses

查看:62
本文介绍了打印页面尺寸减小时带有html控件的.aspx页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友

IAM在vs2010中制作了一个.aspx页面,并且我使用了该页面中的html控件,并且该页面可以完美执行bt当我想从浏览器文件中打印该页面时,> print
页面大小或表大小以及字体大小均减小,并且代码为vb.net

所以我要做的是在没有任何更改的情况下实现完美打印,请帮助我
alredy im浪费了很多时间,这给了我答案.

hi frends

iam make one .aspx page in vs2010 and im used the html controls in that page and page is execute perfectly bt When i want to print that page from browser file>print
the page size or table size and font all are decrease in sizev and code behand is vb.net

so what i have to do for perfect print with out any changes plz help me
alredy im wested to much time frends give me answer

推荐答案

您可以为不同的媒体类型(屏幕和打印)定义不同的CSS.这样您就可以控制它在屏幕上的外观以及在纸上的外观.查看链接以获取更多信息.

http://webdesign.about.com/cs/css/a/aa042103a.htm [ ^ ]
http://www.w3schools.com/css/css_mediatypes.asp [
You can define different css for different media types (screen and printing). That will give you control over how it should look on screen and how it should look on paper. Check out the links for more info.

http://webdesign.about.com/cs/css/a/aa042103a.htm[^]
http://www.w3schools.com/css/css_mediatypes.asp[^]

Good luck!


您好,我遇到了这个问题,请遵循以下技术.

1.正确指定字体大小,宽度,高度
2.不使用类,而不是直接写类的属性.例如:
style ="Background-color:#000;"请尝试并检查.

我有什么问题可以告诉我.

不要忘了给这个答案打分.
Hi, I have faced this problem, Please follow below techniques.

1. Specify font size, width, height properly
2. Not Use Class, in place of Class write properties directly.such as:
style="Background-color:#000;" Please try this and check.

I have any problem then you can tell me.

Don''t forget to rate this answer.


这篇关于打印页面尺寸减小时带有html控件的.aspx页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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