身高= 100%不起作用 [英] height=100% do not work
本文介绍了身高= 100%不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
下面的代码都是高度= 100%,它在Chrome中工作正常,但在Firefox和IE7中显示非常奇怪!它不完全是100%的高度。所有人都知道?
< iframe src =demoFramesetLeftFrame.jspname =treeframeid =treeframe
width = 200px height = 100%frameborder = 0>
< / iframe>
width = 200px height = 100%frameborder = 0>
< / iframe>
< iframe src =test.htmlname =basefrmid =basefrm
width = 200px height = 100%frameborder = 0>
< / iframe>
解决方案
您可能需要一个容器div,高度属性。由于某些原因,在HTML中写100%的高度是最难的事情之一。
以下是一些关于如何达到100%高度的教程。 b
$ b
http://www.dave-woods .co.uk /?p = 144
http://www.webmasterworld.com/forum83/200.htm
the code below are all height=100%, it works fine in chrome but it displayes very strange in firefox and ie7!it is not exactly the 100% height.anyone knows? thanks a million.
<iframe src ="demoFramesetLeftFrame.jsp" name="treeframe" id="treeframe"
width=200px height=100% frameborder=0>
</iframe>
<iframe src="middle.html" name="middle" id="middle"
width=200px height=100% frameborder=0>
</iframe>
<iframe src="test.html" name="basefrm" id="basefrm"
width=200px height=100% frameborder=0>
</iframe>
解决方案
You may need a container div, with a min-height property. Writing 100% height in HTML for some reason is one of the hardest things to do.
Here are some tutorials on how 100% height can be achieved
http://www.dave-woods.co.uk/?p=144
http://www.webmasterworld.com/forum83/200.htm
这篇关于身高= 100%不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文