为可打印的“表单”设置样式 [英] Styling a Printable 'form'

查看:66
本文介绍了为可打印的“表单”设置样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

....当我说''形式''我说的是传统的纸质版本,因为

反对< form> ;.

我正在建立一个基于网络的应用程序,需要能够创建

发票/建议备注/订单致谢等...应用程序本身

具有很大的流畅布局,但对于这些打印文档,我需要修复它们,使得打印的布局是一致的。也就是说,他们需要

才能在A4页面上保持一致。


值得注意的是,可打印版本将显示在页面中,但是

只能立即打印。也就是说,并没有特别需要

是一个屏幕样式表,因为用户只会打印页面,而不是

在屏幕上查看它。


在我开始躲避我自己的解决方案之前,我想我最好做一些关于最佳方法的家庭作业 - 因此我会问你伙计们!


我已经用谷歌搜索过了,那里有很多东西,但是我还在用谷壳来分类小麦。我也发现了一些令人烦恼的事情。

CSS中有一个很好的@Page指令,但是不受支持!


大多数这些表格/文件本质上是表格式的,但我正在努力

抵制表格内的表格布局。


如何我最好控制这个布局吗?我是否指定了固定

宽度的边界块?我使用px / pt / cm / em / etc宽度吗?如何确保内容

包裹而不是拉伸它的容器?


很难提出更具体的问题,因为我我不知道我不知道的是什么!


无论如何,提前谢谢......


Chris

-
cj ******* @ REMOVEMEyahoo.co.uk

[删除明显的位]

解决方案

" CJM" < CJ ****** @ REMOVEMEyahoo.co.uk>在消息中写道

新闻:3a ************* @ individual.net ...

...当我说'' form''我在谈论传统的纸质版本,因为
与< form>相对。

我正在建立一个基于网络的应用程序,需要能够创建发票/建议说明/订单致谢等...应用程序本身
具有很大的流畅布局,但对于这些打印文档我需要将它们固定,以便打印布局是一致的。也就是说,他们需要在A4页面上保持一致。

值得注意的是,可打印版本将显示在页面中,
但只能立即打印。也就是说,没有特别需要成为一个屏幕样式表,因为用户只会打印页面,而不是在屏幕上看它的


在我开始之前躲避我自己的解决方案,我想我最好做一些关于最佳方法的家庭作业 - 因此我会问你们这些人!

我已经google了帮助,那里有很多,但我仍然是从糠中分拣小麦的b
。我也发现了一些令人烦恼的事情。
在CSS中有一个很好的@Page指令,但这些指令几乎都不受支持!

这些表单/文档中的大多数都是表格式的,但我正试图抵制在桌面内的表格布局。

如何最好地控制这种布局?我是否指定
固定宽度的边界块?我使用px / pt / cm / em / etc宽度吗?我如何确保
内容包装而不是拉伸它的容器?

很难提出更具体的问题因为我不知道我做什么知道了!

无论如何,提前谢谢......

Chris

-
cj ******* @ REMOVEMEyahoo.co.uk
[删除明显的位]




谢天谢地我在大屠杀开始之前来到这里,正如我在帖子中所预测的那样

给你在ciwah :-)


对于打印文件,我推荐PDF。使用PDF,您可以确定您的

文档看起来与您期望的完全一样。

祝你好运,



PS:请尽量不要被这里的疯子们冒犯,他们很可能会因为想要使用固定字体和非流畅布局而攻击你们。(br)?br />


我写道:

谢天谢地我在大屠杀开始之前来到这里,正如我在
预言中所预言的那样ciwah :-)

对于打印文件,我推荐PDF。使用PDF,您可以确定您的文档看起来与您期望的完全一致。


对于打印表格,PDF是一个不错的选择。打印样式表也是如此。

PS:请尽量不要被这里的疯子们冒犯,他们可能(当然?)因为想要使用固定字体而攻击你并且<非流畅的布局。




我们并不疯狂。


-

-bts

-这个空间故意留空。


文章< 11 ************ *@corp.supernews.com>, anonymous@_.com 开明

us with ...


PS:请尽量不要被这里的疯子们冒犯,他们可能会因为想要使用固定字体和非流畅布局而攻击你。



你说人们嘲笑你。


锅......水壶。


-

-

~kaeli~

墨菲定律#2030:如果一开始你没有成功,就要毁灭

你试过的所有证据。
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

....When I say ''form'' I''m talking about a conventional paper version, as
opposed to a <form>.

I''m building a web-based application which needs to be able to create
Invoices/Advice Notes/Order Acknowledgements etc... The application itself
has a largely fluid layout, but for these printed documents I need to make
them fixed, such that the printed layout is consistent. That is, they need
to look consistent on an A4 page.

Its worth noting that the printable version will be displayed in a page, but
only to be immediately printed. That is, there doesnt specifically need to
be a screen stylesheet, since the user will only print the page, rather that
look at it on-screen.

Before I start bodging my own solution, I thought I''d better do some
homework on what the best approach to take - hence I''m asking you guys!

I''ve googled for help, and there is plenty out there, but I''m still sorting
the wheat from the chaff. I''m also finding a few annoying things like that
there is a great @Page directive in CSS, which is all but unsupported!

Most of these forms/documents are tabular by nature, but I''m trying to
resist resorting to a tables-within-tables layout as yet.

How best do I control this layout? Do I specify a bounding block of a fixed
width? Do I use px/pt/cm/em/etc widths? How do I make sure that the content
wraps rather than stretches it''s container?

It''s hard to ask more specific questions because I don''t know what I don''t
know!

Anyway, thanks in advance...

Chris
--
cj*******@REMOVEMEyahoo.co.uk
[remove the obvious bits]

解决方案

"CJM" <cj******@REMOVEMEyahoo.co.uk> wrote in message
news:3a*************@individual.net...

...When I say ''form'' I''m talking about a conventional paper version, as
opposed to a <form>.

I''m building a web-based application which needs to be able to create
Invoices/Advice Notes/Order Acknowledgements etc... The application itself
has a largely fluid layout, but for these printed documents I need to make
them fixed, such that the printed layout is consistent. That is, they need
to look consistent on an A4 page.

Its worth noting that the printable version will be displayed in a page, but only to be immediately printed. That is, there doesnt specifically need to
be a screen stylesheet, since the user will only print the page, rather that look at it on-screen.

Before I start bodging my own solution, I thought I''d better do some
homework on what the best approach to take - hence I''m asking you guys!

I''ve googled for help, and there is plenty out there, but I''m still sorting the wheat from the chaff. I''m also finding a few annoying things like that
there is a great @Page directive in CSS, which is all but unsupported!

Most of these forms/documents are tabular by nature, but I''m trying to
resist resorting to a tables-within-tables layout as yet.

How best do I control this layout? Do I specify a bounding block of a fixed width? Do I use px/pt/cm/em/etc widths? How do I make sure that the content wraps rather than stretches it''s container?

It''s hard to ask more specific questions because I don''t know what I don''t
know!

Anyway, thanks in advance...

Chris
--
cj*******@REMOVEMEyahoo.co.uk
[remove the obvious bits]



Thank heavens I got here before the carnage began as I predicted in my post
to you in c.i.w.a.h. :-)

For printed documents I recommend PDF. With PDF you can be certain your
document will look exactly as you expect.
Good Luck,
me

PS: Please try not to be too offended by the crazies in here who will likely
(surely?) attack you for wanting to use fixed fonts and non-fluid layout.


me wrote:

Thank heavens I got here before the carnage began as I predicted in
my post to you in c.i.w.a.h. :-)

For printed documents I recommend PDF. With PDF you can be certain
your document will look exactly as you expect.
For a printed form, PDF is a good option. So would a print style sheet.
PS: Please try not to be too offended by the crazies in here who
will likely (surely?) attack you for wanting to use fixed fonts and
non-fluid layout.



We are not crazy.

--
-bts
-This space intentionally left blank.


In article <11*************@corp.supernews.com>, anonymous@_.com enlightened
us with...


PS: Please try not to be too offended by the crazies in here who will likely
(surely?) attack you for wanting to use fixed fonts and non-fluid layout.



And you say people ridicule YOU.

Pot...kettle.

--
--
~kaeli~
Murphy''s Law #2030: If at first you don''t succeed, destroy
all evidence that you tried.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace


这篇关于为可打印的“表单”设置样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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