IE6实现100%高度显示
ie6如需要定义一个元素的100%高度,必须先指定其父元素一个具体的高度,而如果父元素直接就是body的话,还必须指定html的高度为100%
/*普通元素*/ |
#parent {height:500px;} |
#child {height:100%;} |
/*父级元素为body元素*/ |
html{height:100%;} |
body{min-height:100%;height:auto !important;height:100%;} |
#fullLength {height:100%;} |