我正在寻找一个CSS解决方案,来解决以下问题:
<div style="display:inline;">
<div>The content of this div is dynamically created but will always be wider than
the below div.
</div>
<div> Need this div to have the same width as the above div.
</div>
</div>
包装器使用内联显示,并按预期工作,两个子div都具有动态生成的内容。我需要底部的div获取上一个同级元素的宽度。
提前感谢任何建议。