这是html
<form id="ContactForm" action="">
<div>
<div class="wrapper">
<div class="bg"><input class="input" type="text"></div>Name:
</div>
<div class="wrapper">
<div class="bg"><input class="input" type="text"></div>Email:
</div>
<div class="wrapper">
<div class="bg"><input class="input" type="text"></div>Phone:
</div>
<div class = "wrapper"> <a href="#" class="button" onclick="document.getElementById('ContactForm').submit()">Submit</a></div>
<div class="wrapper"> <a href="#" class="button" onclick="document.getElementById('ContactForm').reset()">Generate code</a>
</div>
</form>
CSS-
#ContactForm .button {
margin: 0 auto;
display:block;
font-size:20px;
font-weight:700;
color:#fff;
line-height:35px;
width:90px;
text-align:center;
background:url(../images/button_form.gif) top repeat-x #308da2;
border-radius:10px;
-moz-border-radius:10px;
-webkit-border-radius:10px;
behavior:url(js/PIE.htc);
position:relative;
text-decoration:none
}