IE6最小高度困境 [英] IE6 min-height dilemma
问题描述
以下是我的网站:
http://smartpeopletalkfast.co.uk /ppp/home-page.html
我希望输入表单与其右边的按钮具有相同的高度。我这样做的min-height值,所以如果文本大小设置为大于此高度,页面仍然可用。
I want the input forms to be the same height as the buttons to their right. I've done this with a min-height value so the page would still be usable if the text size was set to greater than this height.
问题是IE6无法识别min-height。我可以设置一个固定的高度,但我担心用户调整文本超出了这一点。因为这只是一个化妆品问题,我只是想离开这个。
The problem is that IE6 doesn't recognize min-height. I could set a fixed height, but I'm worried about users resizing the text beyond this. As it's only a cosmetic issue, I'm tempted just to leave this.
有任何建议吗?
感谢
Any suggestions? Thanks
推荐答案
如果问题确实只是得到 min-height
在IE6中使用,请使用 最小高度快速攻击 :
If the issue is indeed just getting min-height
working in IE6, use the Min-Height Fast Hack:
selector {
min-height:500px;
height:auto !important;
height:500px;
}
已经存在了很长时间, CSS在未来。
It's been around for a long time, so it's easily recognizable for anybody maintaining your CSS in the future.
这篇关于IE6最小高度困境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!