这可能不使用表吗? [英] Is this possible without the use of tables?

查看:57
本文介绍了这可能不使用表吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

客户想要一个有两列的液体布局:

- 左栏的固定宽度为200px

- 右栏的宽度可变,包含实际内容

他希望背景颜色从左到右从上到下延伸到

底部。


使用div在100%高度我不能一直在IE中,它只是

包装内容。

我不认为这是可能的除非我使用2-cols表,对吧?


-

谢谢,


贾斯汀。
http://www.opera.com/mail/

A customer wants a liquid layout with two columns:
- The left column has a fixed width of 200px
- The right column has a variable width and contains the actual content
He wants the background color to extend from left to right and from top to
bottom.

Using a div with 100% height I can''t go all the way down in IE, it only
wraps the content.
I don''t think it''s possible unless I use a 2-cols table, right?

--
Thanks,

Justin.
http://www.opera.com/mail/

推荐答案

Justin Sane写道:
Justin Sane wrote:
客户想要一个有两列的液体布局:
- 左栏的固定宽度为200px
- 右栏的宽度可变,包含实际内容
他想要bac kground颜色从左到右,从顶部延伸到底部。


我认为你的意思是:他希望左栏的背景颜色

与右栏的背景不同,而且两者都要

一直延伸到底部,而右边

列的背景也应该始终水平填充整个窗口,

无论宽度如何它是什么?

使用100%高度的div我不能在IE中一路走下去,它只包含内容。
我不是我认为除非我使用2-cols表,否则可行吗?
A customer wants a liquid layout with two columns:
- The left column has a fixed width of 200px
- The right column has a variable width and contains the actual content
He wants the background color to extend from left to right and from top to
bottom.
I reckon you mean: he wants the background colour of the left column
to be different from the background of the right column, and both to
extend all the way to the bottom, while the background of the right
column should also always fill the entire window horizontally,
regardless of the width of it?
Using a div with 100% height I can''t go all the way down in IE, it only
wraps the content.
I don''t think it''s possible unless I use a 2-cols table, right?




错误。


Don'' t设置div的高度。或者对任何真的。


Google for 2-col CSS布局。


-

Els http://locusmeus.com/

Sonhos vem。 Sonhos v?o。 Orestoébritfeito。

- Renato Russo -



Wrong.

Don''t set a height to the div. Or to anything really.

Google for 2-col CSS layout.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos v?o. O resto é imperfeito.
- Renato Russo -


2005年6月29日星期三16:47:33 -0300,Els< el *********@tiscali.nl>写道:
On Wed, 29 Jun 2005 16:47:33 -0300, Els <el*********@tiscali.nl> wrote:
我认为你的意思是:他希望左栏的背景颜色与右栏的背景颜色不同,两者都要
一直延伸到底部,而右侧
列的背景也应始终水平填充整个窗口,
无论宽度如何?
I reckon you mean: he wants the background colour of the left column
to be different from the background of the right column, and both to
extend all the way to the bottom, while the background of the right
column should also always fill the entire window horizontally,
regardless of the width of it?



完全正确。



Exactly.

使用100%高度的div我不能在IE中一路向下,它只能<包装内容。
我不认为除非我使用2-cols表,否则它是可能的,对吗?
Using a div with 100% height I can''t go all the way down in IE, it only
wraps the content.
I don''t think it''s possible unless I use a 2-cols table, right?



错误。

不要为div设置高度。或任何真实的东西。



Wrong.

Don''t set a height to the div. Or to anything really.




div与内容的高度相同:(


-

谢谢,


贾斯汀。
http://www.opera.com/mail/


2005年6月29日星期三16:47:33 -0300,Els< ; el ********* @ tiscali.nl>写道:

On Wed, 29 Jun 2005 16:47:33 -0300, Els <el*********@tiscali.nl> wrote:

不要设置div的高度。或者任何真的。
Don''t set a height to the div. Or to anything really.




其实我正在寻找像这样的东西,但它使用100%的窗口:

http://nemesis1.f2o.org/authors/weak...al_longcontent

-

谢谢,


贾斯汀。
http://www.opera.com/mail/


这篇关于这可能不使用表吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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