<div style="height: 54px;">
<span class="companyLogo">Company LOGO</span>
<span class="quotes" style=" ">Quotes</span>
<span class="saleOrders" >Sale Orders</span>
<span class="invoice">Invoice</span>
<span class="openAr" >Open AR</span>
<div style="margin-left:592px; ">
<span class="payments" style=" height: 21px; width: 94px;">Payments</span>
<span class="createMemos" style=" height: 21px; width: 94px;">Create Memos</span>
<span class="rma" style=" height: 21px; width: 94px;">RMA</span>
<span class="crm" style=" height: 21px; width: 94px;">CRM</span>
</div>
</div>
答案 0 :(得分:0)
boot.rap.css将div.container的宽度设置为1000px。 第二个div(包含跨度)的左边距是592px。 跨度内容的宽度加上左边距大于1000px,因此它将跨度换行到下一行。
为了演示,我将容器宽度覆盖为“auto!important”。
.container {
margin: 0 auto;
width:auto !important;
}
编辑: 另一个演示,我调整了这些跨度的左边距:
.quotes {
...
margin-left: 400px;
}
element.style {
margin-left: 552px;
}
考虑使用浮点数而不是左边距。