HTML的打印版本在边缘处切断 [英] Print versions of HTML cut off at margins

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

问题描述

我正在尝试打印出一个将MARGINWIDTH设置为

1的HTML文档,但是,在打印时,HTML表格单元格内容被切断,因为

exmample :


< table border =" 0" width =" 780">

< tr>

< td>您好,这是一段应该打印的长篇文章

全部< / td>

< / tr>

< / table>


但是,这是用户在打印输出时看到的内容:


您好,这是一段很长的文本,应该打印在其



我已将字体设置设置得尽可能小,并且

MARGINWIDTH为1,无济于事。如果用户使用IE打印,它会被切断,如果我使用Firefox 0.6,字体和边距似乎足够小

来打印整个内容。


我可以做些什么来让那里的用户普遍打印

没有截止的HTML文件?要求他们切换浏览器是

不合理和可撤销。


Thanx

Phil

解决方案

2004年9月14日08:01:25 -0700,Phil Powell< ph ************** @ gmail.com>

写道:

我正在尝试打印出一个将MARGINWIDTH设置为
1的HTML文档,但是,在打印时,HTML表格单元格内容被删除off,for
例如:

< table border =" 0" width =" 780">
< tr>
< td>您好,这是一段很长的文字,应该整整打印出来< / td>
< / tr>
< / table>

然而,这是用户在打印输出时看到的内容:


>您好,这是一段很长的文本,应该打印在其中



纸张的宽度是多少像素?不到780?

你已经发现了固定宽度设计的一个缺点。

祝贺你。

我有将字体设置设置为尽可能小,并将MARGINWIDTH设置为1,但无济于事。如果用户使用IE打印,它会被切断,如果我使用Firefox 0.6,字体和边距看起来足够小,可以完整地打印所有内容。

什么我可以做到允许那里的用户普遍打印HTML文件而不用截止吗?要求他们切换浏览器是不合理的和可撤销的。




建议使用打印样式表。


< blockquote> Phil Powell写道:

我正在尝试打印出一个将MARGINWIDTH设置为
1的HTML文档,但是,在打印时,HTML表格单元格内容被截断,

< table border =" 0"宽度= QUOT; 780">
我可以做些什么来让那里的用户普遍打印HTML文档而不用截止?要求他们切换浏览器是不合理的和可撤销的。




不要使用固定宽度表。


-

Mark。
http:// tranchant。 plus.com/




" Neal" <是ne ***** @ yahoo.com>在消息中写道

news:op ************** @ news.individual.net ...

2004年9月14日08 :01:25 -0700,Phil Powell< ph ************** @ gmail.com>
写道:

I我正在尝试打印出一个将MARGINWIDTH设置为
1的HTML文档,但是,在打印时,HTML表格单元格内容会被切断,例如:

< table边界=" 0" width =" 780">
< tr>
< td>您好,这是一段很长的文字,应该整整打印出来< / td>
< / tr>
< / table>

然而,这是用户在打印输出时看到的内容:


> >您好,这是一段很长的文本,应该打印在其中


纸张的宽度是多少?不到780?




这引出了一个我以前应该想到的问题:什么

*是*浏览器视为一个"像素"用于印刷目的?如果我使用的是一台

1200 dpi的打印机,那么打印宽度不超过720英寸的页面应该打印得比一英寸宽吗?事实上,这并没有发生,导致我认为

完全不同的东西正在发生。

你已经发现固定宽度的一个缺点设计。
祝贺。




I am trying to print out an HTML document that has MARGINWIDTH set to
1, however, upon printing, HTML table cell contents are cut off, for
exmample:

<table border="0" width="780">
<tr>
<td>Hello, this is a long piece of text that should be printed in
its entirety</td>
</tr>
</table>

However, this is what the user sees upon printout:

Hello, this is a long piece of text that should be printed in its ent

I have set the font settings to be as small as possible and
MARGINWIDTH to 1, to no avail. If the user uses IE to print, it gets
cut off, if I use Firefox 0.6, the font and margins seem small enough
to print everything in its entirety.

What can I do to allow for the users out there to universally print
HTML documents without cutoff? Asking them to switch browsers is
unreasonable and undoable.

Thanx
Phil

解决方案

On 14 Sep 2004 08:01:25 -0700, Phil Powell <ph**************@gmail.com>
wrote:

I am trying to print out an HTML document that has MARGINWIDTH set to
1, however, upon printing, HTML table cell contents are cut off, for
exmample:

<table border="0" width="780">
<tr>
<td>Hello, this is a long piece of text that should be printed in
its entirety</td>
</tr>
</table>

However, this is what the user sees upon printout:

> Hello, this is a long piece of text that should be printed in its ent


How many pixels wide is the paper? Less than 780?

You''ve discovered one of the drawbacks of fixed width design.
Congratulations.
I have set the font settings to be as small as possible and
MARGINWIDTH to 1, to no avail. If the user uses IE to print, it gets
cut off, if I use Firefox 0.6, the font and margins seem small enough
to print everything in its entirety.

What can I do to allow for the users out there to universally print
HTML documents without cutoff? Asking them to switch browsers is
unreasonable and undoable.



Using a print stylesheet is recommended.


Phil Powell wrote:

I am trying to print out an HTML document that has MARGINWIDTH set to
1, however, upon printing, HTML table cell contents are cut off, for
exmample:

<table border="0" width="780"> What can I do to allow for the users out there to universally print
HTML documents without cutoff? Asking them to switch browsers is
unreasonable and undoable.



Don''t use fixed width tables.

--
Mark.
http://tranchant.plus.com/



"Neal" <ne*****@yahoo.com> wrote in message
news:op**************@news.individual.net...

On 14 Sep 2004 08:01:25 -0700, Phil Powell <ph**************@gmail.com>
wrote:

I am trying to print out an HTML document that has MARGINWIDTH set to
1, however, upon printing, HTML table cell contents are cut off, for
exmample:

<table border="0" width="780">
<tr>
<td>Hello, this is a long piece of text that should be printed in
its entirety</td>
</tr>
</table>

However, this is what the user sees upon printout:

> > Hello, this is a long piece of text that should be printed in its ent


How many pixels wide is the paper? Less than 780?



This leads me to a question that should have occurred to me before: What
*are* browsers treating as a "pixel" for printing purposes? If I''m using a
1200 dpi printer, shouldn''t a fixed-width 720 pixel page by printing less
than an inch wide? In fact, that doesn''t happen, leading me to think that
something entirely different is going on.

You''ve discovered one of the drawbacks of fixed width design.
Congratulations.




这篇关于HTML的打印版本在边缘处切断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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