<div style="float:left; width: 20%; height: 40px; margin-top: 12px">
<strong style="float: right; margin-right: 20px">邮箱:</strong>
</div>
<div style="float:left;width: 50%; height: 40px;margin-top: 12px">
<div>
<input id="eMail" type="text" value="" placeholder="邮箱格式" class="form-control" οnblur="eMailCheck()"/>
</div>
</div>
<div style="float:left; width: 15%; height: 40px; margin-top: 15px;">
<label id="eMailMsg" style="float:left; color: red; font-size: 12px; margin-left:10px "></label>
</div>
var RegEmail = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
function eMailCheck(){
var account = $("#eMail").val();
if( account != "" && !RegEmail.test(account)) {
$("#eMailMsg").html("邮箱格式不正确");
}else {
$("#eMailMsg").html("");
}
}