Edit in JSFiddle
JavaScript
HTML
CSS
Result
<input type="password" placeholder="请输入密码"> <br> <input type="password">