列居中、列间距 html
问题描述,见下图:
想要实现的效果,见下图:
解决方法:添加align关键字,并设置相应的属性值。
示例:
<body>
<div class="ntitle">用户登录失败日志</div>
<div class="for_query_div">
<table border="0" cellpadding="0" cellspacing="0" class="form_table">
<tr align="center">
<td align="right">
<span class="form_label">用户账号:</span>
<input id="userId_s" name="userId" type="text" style="width:200px;" />
</td>
<td align="left">
<input type="button" class="searchBut" id="searchId" value="查询"/>
<input type="button" class="searchBut nasext_privilage" id="deleteAll" value="批量删除" />
</td>
</tr>
</table>
</div>
<div class="for_jqgrid_div" id="jqgrid_div">
<table id="list1"></table>
<div id="pager1"></div>
</div>
</body>