用css来控制就可以了
<div style="position:absolute">
<input type="text" style="position:absolute;left:0;top:0;width:120px;height:25px;"/>
<input type="button" value="test" style="position:absolute;left:70px;top:1px;width:50px"/>
</div>

解决方案 »

  1.   

    <HTML>
    <HEAD>
    <title>WebForm2</title>
    </HEAD>
    <body MS_POSITIONING="GridLayout">
    <form id="Form1" method="post" runat="server">
    <INPUT style="BORDER-TOP: 1px solid; Z-INDEX: 101; LEFT: 112px; BORDER-LEFT: 1px solid; WIDTH: 128px; BORDER-BOTTOM: 1px solid; BORDER-RIGHT-STYLE: none; POSITION: absolute; TOP: 48px; HEIGHT: 20px" type="text" size="16">
    <INPUT style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; Z-INDEX: 102; LEFT: 240px; BORDER-LEFT: 1px; WIDTH: 20px; BORDER-BOTTOM: 1px solid; POSITION: absolute; TOP: 48px; HEIGHT: 20px"  type="button" value="+">
    </form>
    </body>
    </HTML>
      

  2.   

    问题是我不是用绝对位置而是用相对位置象素也是用百分比而不是具体的一个值
    比如<td><input type="text" name="testBox"></td>我要实现的就是让testBox成为一个组合下拉框啊