我在这里有两个带有非常简单代码的 div:http: //jsfiddle.net/vBngZ/ 代码(HTML):
<div class="subcontent" id="div2">
<div class="orangebox" style="width: 55%;margin-top: 6px;float: left;background-color: red;">
<div class="title">Shipping</div>
<ul>
<li>Item will be shipped from Palestine within 48 hours after receiving full payment, with tracking information that will be provided to you.</li>
<li>All products are checked and packaged well before dispatch.</li>
<li>We ship the soap with its Gamila Secret original box.</li>
<li>We ship worldwide by Palastine postal. This international order may take longer to arrive, Normally the shipment to worldwide is used to take 18 to 35 business days.</li>
<li>If you have not received your shipment within 35 days from payment, please contact us IMMEDIATELY. We will track the shipment and get back to you as soon as possible with a reply. </li>
</ul>
</div>
<div class="bluebox" style="width: 44.3%;margin-top: 6px;float: right;background-color: blue">
<div class="title">Payment</div>
<ul>
<li>We only accept payments via paypal.</li>
<li>Payment must be made within 4 days upon auction end, otherwise an unpaid case will be opened</li>
</ul>
</div>
</div>
一个 div 比另一个高,我希望它们都在同一行/行和同一高度,即使在放大(CTRL +)和缩小(CTRL -)之后,我不这样做的两件事t想要的是:1)不使用溢出,所以我不希望在放大后出现滚动条。2)我希望段落内的所有单词即使在放大后也保留在其中。我试图找出一个解决方案,我想出了display: table-cell
但我不知道我怎么能在这里使用它。如果有其他解决方案,请给我。