#element {
width
:
400px
;
height
:
150px
;
height
:
250px
;
width
:
500px
}是的,你要原来的长和宽上加上了padding。但这个fix只会作用于IE了的“怪异模式”,所以你不需要担心在IE6的正常模式下会有问题。
7. 设置min-height和min-width
IE忽略了min-height。
解决方法一
这个fix由 Dustin Diaz提供。其利用了 !important 下面是代码片段:
#element {
min-height
:
150px
;
height
:
auto
!important
;
height
:
150px
;
}解决方法二
#element {
min-height
:
150px
;
height
:
150px










