Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是最简单的例子:
<textarea id="text_area" name="text_area" style="width:280px"> </textarea> <input id="text_field" name="text_field" style="width:280px" type="text" />
尝试将填充和边距值设置为 0px。
我还必须设置边框属性。将以下内容添加到两个元素可以解决问题:
border:1px solid #ccc;