您可以这样设置样式 - http://jsbin.com/adalot/1/
这应该让你朝着正确的方向前进
<div id='holder'>
A :<input type='text' id='field1'/>
B: <input type='text' id='field1'/>
</div>
#holder {border: solid 1px red; width: 400px; background-color: white;}
input {border: none;}
input:focus{outline:none;}
Run Code Online (Sandbox Code Playgroud)