最小高度 [英] minimum height
问题描述
我有一些div(浮动:左),我想设置一个最小高度
。什么是最小高度的支持水平,是否有任何需要注意的错误。
我从未使用过这个,我记得有一个问题
在某个地方。
Jeff
I have some divs (float: left) that I''d like to set a minimum height
on. What''s the level of support on min-height and are there any bugs I
need to watch out for.
I''ve never used this, and I have some memory of there being a problem
with it somewhere.
Jeff
推荐答案
Jeff写道:
我有一些div(浮动:左),我想设置一个最小高度
。什么是最小高度的支持水平,是否有任何我需要注意的错误。
我从来没有用过这个,我有一些记忆在某个地方出现了问题。
Jeff
无论是firefox还是Internet Explorer(我认为后者)都不支持
它。我会添加一个图像(或div中的div),宽度为1px,
高度为你的最小高度。
Nicolaas
I have some divs (float: left) that I''d like to set a minimum height
on. What''s the level of support on min-height and are there any bugs I
need to watch out for.
I''ve never used this, and I have some memory of there being a
problem with it somewhere.
Jeff
Either firefox or internet explorer (I thinkt the latter) does not support
it. I would add an image (or a div within the div) with width 1px and
height your min-height.
Nicolaas
Jeff< do ********* @ all.uk>写道:
Jeff <do*********@all.uk> wrote:
我有一些div(浮动:左),我想设置一个最小高度
。什么是最小高度的支持水平,是否有任何我需要注意的错误。
I have some divs (float: left) that I''d like to set a minimum height
on. What''s the level of support on min-height and are there any bugs I
need to watch out for.
IE不支持它,但它对待高度作为最小高度,所以一个十字架
浏览器最小高度解决方案是:
..YourClass {min-height:10em; height:10em}
*> .YourClass {height:auto}
-
Spartanicus
IE doesn''t support it, but it treats "height" as min-height, so a cross
browser min-height solution is:
..YourClass{min-height:10em;height:10em}
*>.YourClass{height:auto}
--
Spartanicus
Spartanicus写道:
很高兴看到你还在这里闲逛。
Spartanicus wrote:
Glad to see you are still hanging out here.
Jeff< do **** *****@all.uk>写道:
Jeff <do*********@all.uk> wrote:
我有一些div(浮动:左),我想设置一个最小高度
。什么是最小高度的支持水平,是否有任何我需要注意的错误。
I have some divs (float: left) that I''d like to set a minimum height
on. What''s the level of support on min-height and are there any bugs I
need to watch out for.
IE不支持它,但它对待高度作为最小高度,所以一个交叉的浏览器最小高度解决方案是:
.YourClass {min-height:10em; height:10em}
*> .YourClass { height:auto}
IE doesn''t support it, but it treats "height" as min-height, so a cross
browser min-height solution is:
.YourClass{min-height:10em;height:10em}
*>.YourClass{height:auto}
*>那是我也没用过的东西。我甚至都不知道要把它叫做什么?让我知道所以我可以谷歌吧。
干杯,
杰夫
*> that is something I haven''t used either. I don''t even know what to
call it! Let me know so I can google it.
Cheers,
Jeff
这篇关于最小高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!