日期:2014-05-16 浏览次数:20356 次
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
*{
margin:0;
padding:0;
}
body{
font-size:12px;
}
input{
outline:none;
}
.input_div1{
float:left;
width:740px;
border:1px solid #DCDCDC;
}
.input_div1 .input_box1{
margin:5px 5px;
float:left;
display:inline;
}
.input_div1 .input_text1{
width:40px;
height:12px;
padding:4px;
float:left;
}
.input_div1 .div1_span{
line-height:25px;
float:left;
margin-left:5px;
display:inline;
color:#7D7D7D;
}
</style>
<script>
window.onload=function()
{
var j_Div=document.getElementById('jia_div');
var j_Input=document.getElementsByTagName('input');
j_Input[0].onclick=function()
{
if(j_Input.checked)
{
j_Div.style.display="none";
}
else
{
j_Div.style.display="block";
}
}
}
</script>
</head>
<body>
<form>
<div class="input_div1">
<input class="input_box1" type="checkbox"/>
<div id="jia_div" style="display:none;">
<input class="input_text1" type="text" />
</div>
</div>
</form>
</body>
</html>