87,907
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta name="generator" content="editplus" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
</head>
<body>
<div style="width: 12px; height: 12px; border: solid 0px red; overflow: hidden; margin-bottom: 5px;">
<input type="checkbox" id="iptChk1" style="margin: -22px 0px 0px -4px;" />
</div>
<div style="width: 12px; height: 12px; border: solid 0px red; overflow: hidden; margin-bottom: 5px;">
<input type="checkbox" id="iptChk2" style="margin: -22px 0px 0px -4px;" />
</div>
<script type="text/javascript">
<!--
var chk = document.getElementById("iptChk1");
chk.onclick = function() {
if (this.checked)
{
this.style.border = "solid 10px black";
}
else
{
this.style.border = "solid 0px black";
}
};
//-->
</script>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta name="generator" content="editplus" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
</head>
<body>
<input type="checkbox" id="iptChk1" />
<input type="checkbox" id="iptChk2" />
<script type="text/javascript">
<!--
var chk = document.getElementById("iptChk1");
chk.onclick = function() {
if (this.checked)
{
this.style.border = "solid 10px black";
}
else
{
this.style.border = "solid 0px black";
}
};
//-->
</script>
</body>
</html>
style="filter:alpha(opacity=0);opacity:0"