我正在尝试为弹出对话框布局内容,但运气不佳
我尝试过同时使用跨度和内联 div,但它们似乎都不尊重宽度或最小宽度 CSS
有任何想法吗?
这是HTML
<div id="MessageBox" class="ui-dialog-content ui-widget-content" style="width: auto; min-height: 40.8333px; height: auto;" scrolltop="0" scrollleft="0">
<div class="popupKey">Bank Reference</div>
<div class="popupValue"></div>
<br>
<div class="popupKey">Amount</div>
<div class="popupValue">650.00</div>
<br>
<div class="popupKey">Currency</div>
<div class="popupValue">GBP</div>
<br>
<div class="popupKey">PaymentDate</div>
<div class="popupValue">02/06/2011</div>
<br>
<div class="popupKey">Remitter</div>
<div class="popupValue"></div>
<br>
<div class="popupKey">Senders Reference</div>
<div class="popupValue"></div>
<br>
</div>
和 CSS
.popupKey
{
display : inline;
min-width: 150px;
}
.popupValue
{
display : inline;
min-width: 150px;
}
我想对齐 popupValue 列中的所有项目
这里有一个 JSFiddle: