我在网页中有以下输出(黑色突出显示的区域包含敏感数据):
除了最长的行后面总是有另一个空白行之外,每一行都正确显示。
这是代表一行的代码:
<div style="clear:both; white-space:nowrap;">
<span style="float:left; margin-right:5px">
<a class="provider" href="javascript:void(0)"
onkeypress="showProviderInfo(this, 'claim2')"
onclick="showProviderInfo(this, 'claim2')">[+]</a>
THE ENTRY WITH THE LONGEST NAME CAUSES AN EXTRA LINE TO DISPLAY BELOW IT...
</span>
<span style="float:right">
<a href="javascript:void(0)"
onkeypress="openAddWindowForMedicalProvider('12345678')"
onclick="openAddWindowForMedicalProvider('12345678')">
Create as Medical Provider
</a>
<a href="javascript:void(0)"
onkeypress="openAddWindowForServiceProvider('12345678')"
onclick="openAddWindowForServiceProvider('12345678')">
Create as Service Provider
</a>
</span>
</div>
<br />
我怎样才能设置这个样式,使得多余的行不会出现在最长的行之后?