just add the following to your css:
html, body{
height: 100%;
}
As other said, a table
doesn't have a height
-attriute, but most browsers intrepet that anyway. you can see the result on jsfiddle.
The reason you need to do this is that the parent element of anything that should have a height in % must have a height too (as Shadow Wizard said: "30% of what exactly?" - the parent has to have a height).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…