Home >Web Front-end >HTML Tutorial >Problem with Chinese characters displayed inside the password input box_html/css_WEB-ITnose

Problem with Chinese characters displayed inside the password input box_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:24:332429browse

input login password input box

1. Requirements Description
The login interface must look like the picture below, if is used. When the password entered by the user becomes clear text, this does not meet the requirements. When changing the type attribute of to passowrd. The default "password" becomes "??". Some people may think of using js to dynamically change the type attribute of input. This method is feasible in some browsers such as Firefox. But there is nothing you can do to get it when you encounter the evil IE. In IE, the type attribute of input is read-only. In order to solve the compatibility issues of various browsers, the following methods are used.


2. Solution
We use HTML