#parent div 能否通过#child div 调整大小(*当#child div 使用position:absolute;)
就像#t_parent table 被#t_child table resize一样
<div id="parent" style="position:relative; width:500px; height:500px; border:#F00 3px solid;">
<div id="child" style="position:absolute; left:20px; width:800px; height:500px; border:#06F 3px solid;"></div>
</div>
<table id="t_parent" width="500" border="1" cellspacing="0" cellpadding="0">
<tr>
<td>
<table id="t_child" width="800" border="1" cellspacing="0" cellpadding="0">
<tr>
<td>TEXT</td>
</tr>
</table>
</td>
</tr>
</table>
最佳答案
如果有固定的宽度/高度 - 不,你不能调整大小。
关于html - 如何通过绝对div调整div的大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7644237/