复制代码代码如下:
<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>
