如何让编辑框的宽度自动适应?
myy 2005-06-10 11:14:21 <table bgcolor="#ECE9D8">
<tr>
<td width="300">
<input id="edt" type="text" value="cdcdcd" style="width: 100%;" />
<input id="btn1" type="button" value="ssss" onclick="ins();" />
<input id="btn2" type="button" value="rrrr" onclick="ins();" />
</td>
</tr>
</table>
这样一个简单的表格中,上面的 td 宽度为 300 ,
我想让edt、btn1、btn2在 td 内在一行上,edt自动撑满,
并且把btn1、btn2 “挤到”居右(不能换行),
能否通过设置style实现?并且我如果改动 td 的宽度,还能自动保持这种效果。