为什么不“ -webkit-text-security:圈;”做任何事情?

这是我有缺陷的代码:

<tr> <td>Confirm Password:<span class="important_fill">*</span> </td> <td><input type="Password" name="password1" id="password1" size="30" style="-webkit-text-security: circle;" required/></td> <td style="color:Red" id="errorPassword1"></td> </tr>

This (putting -webkit-text-security: circle; in the style attribute of the input) worked on the login page, but when I tried on the registration page - suddenly it doesn't do anything. I want to change it to circle for aesthetics - anyone's got any idea?

评论
  • wnatus
    wnatus 回复

    It works for input not for type password change that in your HTML.

    Change input type="text" from input type="password".

    <tr>
      <td>Confirm Password:<span class="important_fill">*</span> </td>
      <td>
        <input type="text" name="password1" id="password1" size="30" style="-webkit-text-security: circle;" required />
      </td>
      <td style="color:Red" id="errorPassword1"></td>
    </tr>