【发布时间】:2010-01-29 10:39:28
【问题描述】:
包装多个元素的最佳方式是什么。我尝试了几种方法,但都没有成功。
这是标记:
<div>
<h3>Civil aerospace </h3>
<p>Powering more than 30 civil aircraft types from small executive jets to the lartest airliners.</p>
<h4>£47.1bn</h4>
<p>Order book</p>
<h4>£4,481m</h4>
<p>Revenue</p>
</div>
这是我最终需要的:
<div class="hub">
<h3>Civil aerospace </h3>
<p>Powering more than 30 civil aircraft types from small executive jets to the lartest airliners.</p>
<div class="wrap">
<h4>£47.1bn</h4>
<p>Order book</p>
</div>
<div class="wrap">
<h4>£4,481m</h4>
<p>Revenue</p>
</div>
</div>
尝试过添加、查找、过滤等
我需要设置迭代吗?
【问题讨论】:
-
第一个和最后一个marups是相同的(没有任何标记)。
-
感谢马克 B!抱歉忘记正确格式化。
标签: javascript jquery html