任何方式告诉表格“必要的宽度”? [英] Any way to tell a table to go "as wide as necessary"?

查看:62
本文介绍了任何方式告诉表格“必要的宽度”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一张报告表。它可以变宽,但这没什么大不了的。我不知道它会变宽。


但是,我的主意是,浏览器最糟糕的是粉碎了这个东西

下来让它适合窗口(无济于事)。它把它弄得一团糟,直到它为止b $ b不能再塞满然后弹出水平滚动条,而不是只需要放开,然后设置表格免费,滚动条被诅咒。


有没有办法告诉浏览器我的内容区域是ok。为了防止它在我的桌子上嘎吱嘎吱地做必要的时间吗?


细节是表格可以显示一个月,一个季度,或者说是一年一年的数据,并且(懒惰)我宁愿不必设置表格宽度,

并让它自然地流动,但是不一定包装所有的

文本等。


另一个细节是,使用相同的标记,我改变了内容类型,所以

它可以(作为一个选项)显示在Excel中(这根本不是问题)。

但我希望它在浏览器中看起来尽可能好看而没有

做一堆自定义标记或Excel特定版本等。


问候,


Will Hartung

(wi***@msoft.com)

I have a table for a report. It can get wide, but that''s no big deal. I
don''t mind that it can get wide.

What I do mind, though, is the browser doing its damndest to smash the thing
down to get it to fit the window (to no avail). It crams it down until it
can''t cram any more and then pops up the horizaontal scroll bar, rather than
just "let go", and set the table free, scrollbar be damned.

Is there a way to tell the browser that my content area is "ok" to make as
big as necessary to keep it from crunching up my table?

The detail is that the table can show either a single month, a quarter, or a
year of data, and (being lazy) I''d rather not have to set the table widths,
and just let the thing flow naturally, but not necessarily wrapping all of
the text etc.

The other detail is that with the same markup, I change the content-type so
it can (as an option) show up in Excel (where this isn''t a problem at all).
But I want it to look as nice as practical in the browser without having to
do a bunch of custom markup or an Excel specific version, etc.

Regards,

Will Hartung
(wi***@msoft.com)

推荐答案

以前在comp.infosystems中。 www.authoring.html ,Will Hartun g

< wi *** @ msoft.com>说:
Previously in comp.infosystems.www.authoring.html, Will Hartung
<wi***@msoft.com> said:
有没有办法告诉浏览器我的内容区域是ok。为了防止它在我的桌子上嘎吱嘎吱地做必要的大小?
Is there a way to tell the browser that my content area is "ok" to make as
big as necessary to keep it from crunching up my table?




这是表的默认行为。它们将延伸到容纳内容所需的范围。

。如果您的表格不符合

方式,请发布URI。


-

Mark Parnell
< a rel =nofollowhref =http://www.clarkecomputers.com.autarget =_ blank> http://www.clarkecomputers.com.au


" Will Hartung" <无线*** @ msoft.com>在消息中写道

news:39 ************* @ individual.net ...
"Will Hartung" <wi***@msoft.com> wrote in message
news:39*************@individual.net...
我有一张报告表。它可以变宽,但这没什么大不了的。我不介意它可以扩大。

我的主意是,浏览器最糟糕的是粉碎了
的东西,以便它适合窗户(无济于事)。它把它弄得一团糟,直到它不能再塞满然后再弹出水平滚动条,而不仅仅是放开,而是将表放开,滚动条被诅咒。 br />
有没有办法告诉浏览器我的内容区域是ok。为了防止它在我的桌子上嘎吱嘎吱地做出必要的大小?

详细说明该表可以显示一个月,一个季度或者每年
a数据,和(懒惰)我宁愿不必设置表
宽度,只是让事物自然流动,但不一定包裹所有的文本等

另一个细节是,使用相同的标记,我更改内容类型
,以便它可以(作为一个选项)显示在Excel中(这不是
所有问题所有)。但我希望它在浏览器中看起来尽可能好,而不需要
来做一堆自定义标记或Excel特定版本等。

问候,

Will Hartung
(wi *** @ msoft.com)
I have a table for a report. It can get wide, but that''s no big deal. I
don''t mind that it can get wide.

What I do mind, though, is the browser doing its damndest to smash the thing down to get it to fit the window (to no avail). It crams it down until it
can''t cram any more and then pops up the horizaontal scroll bar, rather than just "let go", and set the table free, scrollbar be damned.

Is there a way to tell the browser that my content area is "ok" to make as
big as necessary to keep it from crunching up my table?

The detail is that the table can show either a single month, a quarter, or a year of data, and (being lazy) I''d rather not have to set the table widths, and just let the thing flow naturally, but not necessarily wrapping all of
the text etc.

The other detail is that with the same markup, I change the content-type so it can (as an option) show up in Excel (where this isn''t a problem at all). But I want it to look as nice as practical in the browser without having to do a bunch of custom markup or an Excel specific version, etc.

Regards,

Will Hartung
(wi***@msoft.com)




请参阅以下内容:

祝你好运,< br $> b $ b me


< td nowrap>你不想包装的东西。< / td>



See the following:
Good Luck,
me

<td nowrap>Stuff you don''t want to wrap.</td>


凝视着我的水晶球,我观察到了我。 <匿名@_ COM>。写在

新闻:11 ************* @ corp.supernews.com:
Gazing into my crystal ball I observed "me" <anonymous@_.com> writing in
news:11*************@corp.supernews.com:
" Will Hartung" <无线*** @ msoft.com>在消息中写道
新闻:39 ************* @ individual.net ...
"Will Hartung" <wi***@msoft.com> wrote in message
news:39*************@individual.net...
我有一张报告表。它可以扩大,但这没什么大不了的。
我不介意它可以扩大。

有没有办法告诉浏览器我的内容区域是好为了防止它在我的桌子上嘎吱嘎吱地做出必要的大小?
I have a table for a report. It can get wide, but that''s no big deal.
I don''t mind that it can get wide.

Is there a way to tell the browser that my content area is "ok" to
make as big as necessary to keep it from crunching up my table?



请参阅以下内容:
祝你好运,

< td nowrap>你不想包装的东西。< / td>



See the following:
Good Luck,
me

<td nowrap>Stuff you don''t want to wrap.</td>



折旧


更好:


td {white-space:nowrap}

-

Adrienne Boswell
http://www.cavalcade-of-coding.info

请回复小组,以便其他人分享


Depreciated

Better:

td {white-space: nowrap}
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share


这篇关于任何方式告诉表格“必要的宽度”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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