CSS 100% height in ie [duplicate]

社会主义新天地 提交于 2019-12-18 08:49:35

问题


Why does height:100% not work in IE. How can we get around this.


回答1:


try

* html .class{ height:100% }



回答2:


You have to set height:100% to all the parents up to body. Try this (it works):

`<html><body style="height:100%;"><div style="height:100%;background-color:red">Here it is!</div></body></html>`


来源:https://stackoverflow.com/questions/4954147/css-100-height-in-ie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!