简体   繁体   中英

Can you replicate a password input with a text input?

In other words, are the following equivalent?

<input type="text" autocomplete="off" spellcheck="false" />

<style>
   input[type="text"] {
     -webkit-text-security: disc;
     text-security: disc;
   }
</style>

and

<input type="password" />

No they are not

<input type="password" /> is compatible on all browsers of all versions, while the other is not.

But technically the output result is the same on modern browsers that support even one css property of it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM