我需要在一行中显示字符串“field1 field2 field3”,field1、field2 和 field3 将是 N 个字符。
我怎样才能显示字符串?
<style>
#div1{
width:1000px;
border:1px solid;
}
.field1{
display:inline;
width:auto;
}
.field2{
display:inline;
width:auto;
}
.field3{
width:auto;
}
</style>
<div id="div1">
<div class="field1">Field1(with N number of characters)</div>
<div class="field2">Field2(with N number of characters)</div>
<div class="field3">Field3(with N number of characters)</div>
</div>