html:
<div class="remember-login" style="margin-bottom: 16px;">
<input type="checkbox" id="male"/>
<label for="male" style="position: absolute;">记住登录</label>
<div id="forget" style="float: right;color: #f5b955;cursor: pointer;">忘记密码?</div>
</div>
css:
input[type='checkbox']{
width: 20px;
height: 20px;
background-color: #fff;
appearance:none;
-webkit-appearance:none;
-o-appearance:none;
-moz-appearance:none;
border: 1px solid #FFAD01;
border-radius: 2px;
outline: none;
}
input[type=checkbox]:checked{
background: url("/Public/images/icon/yellow_checkbox_selected.png")no-repeat center;
}
input[type=checkbox]:focus{
outline: none;
}