CSS - IE / Firefox问题 - 元素高度 [英] CSS - IE/Firefox problem - element height

查看:74
本文介绍了CSS - IE / Firefox问题 - 元素高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我遇到一个小问题,关于IE& Firefox

兼容性(在Firefox中按预期工作,在IE中不起作用)。


i有一个container-div元素,其中包含1个图像,2个嵌套

div元素。问题是,在IE中,容器-div的高度是...... b $ b扩展 - 它使自己高达*所有*元素w / i in,而不是
比固定高度我已经在px中分配了。


更容易显示。这是一个问题的dummied-down演示:

http://www.semi-suave.com/temp/temp.html
http://www.semi-suave.com/temp/css/profile.css

这里是一张图片IE对我的高度做了什么:

http://www.semi-suave.com/temp/the_problem.jpg

.....任何人都可以帮我解决这个问题吗?我希望container-div(

婴儿蓝盒子)只有130px,因为它在mhprofile.css

文件中定义。如何阻止它自动调整大小到其所有

嵌套内容的高度!??

谢谢!

matt

hello,

i am experiencing a little problem w/ regards to IE & Firefox
compatibility (works as expected in firefox, doesnt in IE).

i have a container-div element, which contains 1 image, and 2 nested
div elements. the problem is, in IE the height of the container-div is
extended -- it makes itself as high as *all* elements w/i in, rather
than the fixed-height i have assigned in px.

easier to show. here is a dummied-down demo of the problem:

http://www.semi-suave.com/temp/temp.html
http://www.semi-suave.com/temp/css/profile.css
and here is an image of what IE is doing to my height:

http://www.semi-suave.com/temp/the_problem.jpg
.....can anyone help me figure this out? i want the container-div (the
baby-blue box) to be only "130px", as its defined in mh "profile.css"
file. how do i stop it from auto-sizing itself to the height of all its
nested content!??
thanks!
matt

推荐答案

ma**@mailinator.com 写道:
你好,


你好马特,


有一点我必须立刻说:请不要多-post。如果你b $ b相信几个新闻组必须阅读你的帖子,那么至少

交叉发布,清楚地表明如此然后设置后续 -

因此。多个帖子真的很烦人。


见第6项

Usenet的七个不要:
http://www.cs.tut.fi/~jkorpela/usenet/dont。 HTML

i我遇到了一个小问题,关于IE& Firefox
兼容性(在Firefox中按预期工作,在IE中不起作用)。

我有一个container-div元素,其中包含1个图像和2个嵌套的
div元素。问题是,在IE中,容器div的高度被扩展
hello,
Hello Matt,

One thing I must immediately say: please do not multi-post. If you
believe several newsgroups must read your post, then at least
cross-post, clearly indicate so and then set the followup-to
accordingly. Multi-posting is really annoying.

See item 6 at
The seven don''ts of Usenet:
http://www.cs.tut.fi/~jkorpela/usenet/dont.html
i am experiencing a little problem w/ regards to IE & Firefox
compatibility (works as expected in firefox, doesnt in IE).

i have a container-div element, which contains 1 image, and 2 nested
div elements. the problem is, in IE the height of the container-div is
extended




5和溢出的MSIE 6:可见;溢出的默认/初始值

是可见的。


如果你尝试
http://www.hixie.ch/tests/evil/mixed/vertgrowth.html

1.固定纵向尺寸

使用MSIE 6和Firefox 1.x,你会立即看到破损的溢出模型。


更多MSIE 6 bug收集站点:
http://www.gtalbot.org/ BrowserBugsSe ... ollectionSites

$ b $bGérard

-

删除等等给我发电子邮件



This is most likely due to a well known incorrect implementation in MSIE
5 and MSIE 6 of overflow: visible; the default/initial value of overflow
is visible.

If you try
http://www.hixie.ch/tests/evil/mixed/vertgrowth.html
1. Fixed Longitudinal Dimensions
with MSIE 6 and Firefox 1.x, you immediately see the broken overflow model.

More MSIE 6 bug collection sites:
http://www.gtalbot.org/BrowserBugsSe...ollectionSites

Gérard
--
remove blah to email me


感谢您的提示。


多发帖...这是我多年来的经验最多

帖子被忽略了。当我有数据库或编程问题时,我打了

与相关主题相关的新闻组(复数)。通过张贴到4

或5,我可能得到一个回复​​。对不起,如果这对你来说有问题...当我的

ISP用完硬盘空间时就停止了。我将调查

交叉发布。

matt

thanks for the tip.

as for multi-posting... its been my experience over the years that most
posts go ignored. when i have database or programming questions i hit
the newsgroups (plural) related to topic in question. by posting to 4
or 5, i might get one reply. sorry if thats a problem for you...when my
ISP runs out of harddrive space ill stop. tho i will look into
cross-posting.
matt


ma ** @ mailinator.com 写道:
ma**@mailinator.com wrote:
感谢提示。

as对于多个帖子...这是我多年来的经验,大多数
帖子都被忽略了。当我有数据库或编程问题时,我点击与相关主题相关的新闻组(复数)。


如果您确实找到了几个适用的群组,请与他们交叉发布,并且

设置后续内容,以便您阅读答案。多发帖子意味着

您将在各处获得个人答案,并勾选

以后找到您其他帖子的响应者。嘿,也许这就是为什么你的

帖子被忽略了!

张贴到4或5,我可能得到一个回复​​。


然后你没有选择正确的组。

对不起,如果这对你来说是个问题...当我的ISP用完硬盘时
thanks for the tip.

as for multi-posting... its been my experience over the years that most
posts go ignored. when i have database or programming questions i hit
the newsgroups (plural) related to topic in question.
If you actually find several groups that apply, cross-post to them, and
set followups where you want to read the answers. Multi-posting means
you will have individual answers all over the place, and tick off
responders who find your other posts later. Hey, maybe that''s why your
posts go ignored!
by posting to 4 or 5, i might get one reply.
Then you didn''t pick the correct group.
sorry if thats a problem for you...when my ISP runs out of harddrive
space ill stop. tho i will look into cross-posting.




当您发布多个帖子时,您占用的磁盘空间远远超过您的b / b
交叉发布(只需要一个帖子的实例)。


如果你使用真正的新闻阅读器,你会发现(交叉)发布更容易。

此页面将引起您的兴趣。
http:/ /www.safalra.com/special/googlegroupsreply/



- -

-bts

-警告:我为草坪鹿刹车



When you multi-post, you use up far more disk-space than if you
cross-post (which takes just one instance of the post).

If you use a real newsreader, you will find (cross) posting much easier.

This page will be of interest.
http://www.safalra.com/special/googlegroupsreply/

Your shift key seems to be broken as well.

--
-bts
-Warning: I brake for lawn deer


这篇关于CSS - IE / Firefox问题 - 元素高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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