表格宽度 - 表格跳出其div [英] Table width - table jumps out of its div

查看:60
本文介绍了表格宽度 - 表格跳出其div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




在我的样式表中,我已经将表格的宽度设置为100% - 在Opera和

Firefox中,表格是放置在包含div中,它占用了可用宽度的总金额。


但是,在IE中,表格跳转从它的容器中拿出

div到右边。看起来好像桌子占据了100%的页面大小,而不是div的宽度为
100%。


我怎么能纠正这个?


图片,千言万语......目前我还没有网上这个,但是如果你愿意的话,还有b $ b看到结果,我总是可以把它放在网上。


提前谢谢,


Ikke

Hi,

In my stylesheet I''ve set the width of a table to 100% - in Opera and
Firefox, the table is placed within the containing div and it takes up the
total amount of width available.

However, in IE the table "jumps" out of it''s container and takes over the
div to the right. It appears as though the table is taking up a width of
100% as in 100% of the page size, not the div.

How can I rectify this?

Pictures, thousand words, etc... At the moment I don''t have this online but
if you''d like to see the result, I can always put it online somewhere.

Thanks in advance,

Ikke

推荐答案



Ikke写道:

Ikke wrote:




在我的样式表中,我已经将表格的宽度设置为100% - 在Opera和

Firefox中,表格放在包含的div中,它占用了

可用宽度的总量。


然而,在IE中,表格跳跃从它的容器中拿出

div到右边。好像表格占据了100%的页面大小而不是div的宽度为
100%。
Hi,

In my stylesheet I''ve set the width of a table to 100% - in Opera and
Firefox, the table is placed within the containing div and it takes up the
total amount of width available.

However, in IE the table "jumps" out of it''s container and takes over the
div to the right. It appears as though the table is taking up a width of
100% as in 100% of the page size, not the div.



参见

< http://groups.google.com/group/comp.infosystems.www.authoring.stylesheets/msg / 6c92890f4573c956>

See
<http://groups.google.com/group/comp.infosystems.www.authoring.stylesheets/msg/6c92890f4573c956>


" VK" < sc ********** @ yahoo.comwrote in

新闻:11 ********************* *@e64g2000cwd.googlegr oups.com:
"VK" <sc**********@yahoo.comwrote in
news:11**********************@e64g2000cwd.googlegr oups.com:

>

Ikke写道:
>
Ikke wrote:

>

在我的样式表中,我已将表格的宽度设置为100% - 在Opera和
Firefox中,表格放在包含div中然而,在IE中,表格跳跃了。从它的容器中取出并接管右边的div。看起来表格的宽度为100%,而页面大小为100%,而不是div。
>Hi,

In my stylesheet I''ve set the width of a table to 100% - in Opera and
Firefox, the table is placed within the containing div and it takes
up the total amount of width available.

However, in IE the table "jumps" out of it''s container and takes over
the div to the right. It appears as though the table is taking up a
width of 100% as in 100% of the page size, not the div.



参见

< http://groups.google.com/group/comp....oring.styleshe

ets / msg / 6c92890f4573c956>


See
<http://groups.google.com/group/comp....oring.styleshe
ets/msg/6c92890f4573c956>



这正是我所面对的 - 一个嵌套在

液体布局的div中的表...唉,在那里找不到解决方案。


您是否有解决方案或建议?


谢谢,


Ikke

That is exactly what I''m faced with - a table nested within the div of a
liquid layout... Alas, there is no solution to be found there.

Do you perhaps have a solution or a suggestion?

Thanks,

Ikke


参见

< http://groups.google.com/group/ comp .... oring.styleshe

ets / msg / 6c92890f4573c956>
<http://groups.google.com/group/comp....oring.styleshe
ets/msg/6c92890f4573c956>



这正是我所面对的 - 一个嵌套在

液体布局的div中的表......唉,在那里找不到解决方案。


您是否有解决方案或建议?


That is exactly what I''m faced with - a table nested within the div of a
liquid layout... Alas, there is no solution to be found there.

Do you perhaps have a solution or a suggestion?



这取决于你在脑海中的布局类型。如果它是一个以页面内容区域为中心的左边和右边剩余部分的

那么我

有一个我经常使用的可靠而优雅的解决方案。如果它是经典的

三列布局,每列中的内容或其他更多

复杂然后我不是一个div-layout大师:但是其他人可能

提示一些东西。链接或ASCII草图会有所帮助。

That depends on what kind of layout do you have in your mind. If it''s a
centered on the page content area with left and right remainders then I
have a reliable and elegant solution I use often. If it''s a classical
three columns layout with content in each column or something more
sophisticated then I''m not a div-layout guru: but someone else may
suggest something. A link or an ASCII sketch would be helpful.


这篇关于表格宽度 - 表格跳出其div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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