http://jsfiddle.net/ZAvDd/
As my table row grows in height, I'd like my div inside to automatically match it as well.
For the code above, my div
's height is always 0
.
I understand that the height:inherit
only works when you explicitly state the height of the parent (<td>
) but I don't want to do that because I have no idea what content height will be displayed there.
Is there any css trick to do this or do I have to resort to some JS?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…