本文主要包含密码框等相关知识,佚名  希望在学习及工作中可以帮助到您
  
<html>   </p>
<p><!--样式--> 
<style type="text/css">  </p>
<p>#c { position: relative;}  </p>
<p>#a { position: absolute; left: 10; top: 10; font-size: 12px; font-family: 宋体; }  </p>
<p>#b { position: absolute; left: 10; top: 10; font-size: 12px; font-family: 宋体; -moz-opacity:0;opacity: 0;filter: alpha(opacity=0); }  </p>
<p></style>  </p>
<p><body>  
<div id="c">  </p>
<p><input id="a" />  </p>
<p><input id="b" onkeyup="document.getElementById('a').value=this.value.replace(/./g,'*');" />  </p>
<p></div>  
</body> 
</html> 

