Html 如何在html5中为表格提供100%的高度
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11628398/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 01:48:25 来源:igfitidea点击:
how to give 100% height for table in html5
提问by Rangappa Tungal
How to give 100% height for table,
如何为桌子提供 100% 的高度,
<table border="1" style="height:100%"><tr> <td>Height 100%</td></tr> </table>
i tried this but its not taking 100% height, can any one help me
我试过了,但它没有达到 100% 的高度,有人可以帮助我吗
回答by Zoltan Toth
Give your body the height of 100%
and the table will follow - http://jsfiddle.net/R3h3p/
给你的身体高度,100%
桌子就会跟着 - http://jsfiddle.net/R3h3p/