如何使父 div 根据嵌套 div 的大小增长?
例如,我有三个嵌套的 div,我需要祖父 divmin-height:80px并让它增长直到max-height:120px- 随着孙子文本的增长......
请看下面的小提琴
ps 我用的是火狐。
The problem is the position:absolute; for your #dynamictext
In this update of your jsfiddle: http://jsfiddle.net/EB3SU/9/
I changed it to position:relative; and it worked fine.