您的位置:首页 > 其它

提交按钮设置背景图片,以及鼠标经过换背景图

2014-08-22 16:42 344 查看
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);}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: