HTML:用表格布局表单
<form name="pad_form" id="pad_form" action="http://www.tpyx.cn/Accountspromotion/adv_do_register" method="post" >
<table style="text-align:left; width:500px">
<tr>
<td width="100"><label>用户名:</td>
<td width="150"></label><input type="text" id="code" name="username" size="20" /></td>
<td><span id="code_notice" style="color:red; font-size:12px;"></span></td>
</tr>
<tr>
<td><label>登录密码:</label></td>
<td width="150"><input type="password" id="password" name="password" size="20" /></td>
<td><span id="password_notice"></span></td>
</tr>
<tr>
<td><label>重复密码:</label></td>
<td width="150"><input type="password" id="password2" name="password2" size="20" /></td>
<td><span id="password2_notice"></span></td>
</tr>
<tr>
<td><label>服务器:</label></td>
<td width="150"><select id="re_server_id" name="sid"></select></td>
<td><span id="re_server_id_notice"></span></td>
</tr>
<tr>
<td colspan="3" style=" padding-left:50px; padding-top:20px;"><input type="submit" id="submit" value=" " class="formsubmit" /></td>
</tr>
</table>
CSS:为提交按钮设置背景图,和鼠标经过图片
.formsubmit{ background:url(../button.png) no-repeat bottom left; width:247px; height:60px;cursor:pointer; border:0px;}
.formsubmit:hover{ background:url(../button_2.png);}