标签:style blog http io ar color sp on div
用css做不了圆的checkbox框
所以只能用图片代替。
/**
*记住密码图片按钮切换
*/
function rememberPwd(){
var isRemember = $("#remember_pwd").attr("data-value");
if (0 == isRemember){
$("#remember_pwd").attr("data-value", "1")
$("#remember_pwd").attr("src", "img/remember_yes.png")
}else if (1 == isRemember){
$("#remember_pwd").attr("data-value", "0")
$("#remember_pwd").attr("src", "img/remember_no.png")
}
}
<div> <img src="img/remember_no.png" id="remember_pwd" data-value="0" onclick="rememberPwd();" style="width: 25px; height: 25px;vertical-align:middle;"/> <span style="color:white;"> 记住密码</span> <button type="button" class="btn btn-customize" style="float:right;" onclick="signIn()">登录</button> </div>
图片:
标签:style blog http io ar color sp on div
原文地址:http://www.cnblogs.com/JAYIT/p/4128483.html