如何让密码输入框不能选中密码,如QQ的登录客户端:不能选中密码

解决方案 »

  1.   

    <html>
    <head>
    <style>
      body{   
         -moz-user-select:none;   
       }   
    </style>
    </head>
    <body>
    防止复制
    <input type="text" name="kk"  onselectstart="return false"/>
    </body>
    </html>
      

  2.   

    password输入框本来就已经屏蔽了复制功能。
      

  3.   

    是的,我是想让他也不能选中,有的翻译软件(lingoes),如果你选中一段文字,他会显示选中的文字,密码也一样
      

  4.   

    <input type="text" onselectstart="return false" oncopy="return false" onpaste="return false" /> 防止复制选中粘贴