很郁闷,关于style.display的问题
<input id=ipt1 NAME="ipt1"><input id=ipt2 NAME="ipt2"><input id=ipt3 NAME="ipt3">
<input type=button onclick=doit() value=doit>
<script>
function doit()
{
ipt1.style.display = "none";
ipt2.style.display = "none";
ipt3.style.display = "none";
ipt1.style.display = "block";
ipt2.style.display = "block";
ipt3.style.display = "block";
}
</script>
本来是连着的3个input,一按就变不同行了,大家看看怎么解决.