我一直在尝试在不使用表格的情况下将长列表分成三列。此列表通过在阴影框中弹出来显示。然而,第三个 DIV(右浮动 DIV)在 Chrome 中出现在其他两个下方,但在 Safari、FF 或 IE 中却没有。对此有任何解释/修复吗?
这是一些代码:
<div style="float: left; width: 30%; position: relative;display: block;">
<P class="list">Aareon</p>
<P class="list">ABC Systems and Development</p>
...ect
</div>
<div style="float: left; width: 30%; position: relative; display: inline-block;">
<P class="list">EDS</p>
<P class="list">Electoral Office</p>
...ect
</div>
<div style="float: right; width: 30%; position: relative; display: inline-block;">
<P class="list">Pfizer Adams</p>
<P class="list">Philips Electronics</p>
...ect
</div>
CSS
P.list {margin:5px 0px; line-height:16px;padding-left:10px;text-indent:-7px}
P.list:before {content:url('../images/bullet.png');position:relative;left:-3px
}
*我已经尝试过没有内联块,位置:相对,并增加了阴影框弹出窗口的大小。*shadowbox 的代码很好,因为它适用于其他页面。