我有以下 HTML
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
<style>
.box
{
border:solid black 1px;
padding:0px;
margin:0px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<input class="box" style="width:300px;" /><br />
<input class="box" style="width:150px;" />
<input class="box" style="width:150px;" /><br />
<input class="box" style="width:100px;" />
<input class="box" style="width:100px;" />
<input class="box" style="width:100px;" />
</form>
</body>
</html>
这个想法是文本框应该在右侧完成像素完美。
我最终将在第 2 行和第 3 行添加间距以扩大宽度以进行补偿,但目前我想让这个简单的示例进行渲染。
那么如何删除这些文本框的边距以便正确对齐?