The hidden numbers in bank cards and mobile phone numbers are replaced by * numbers, which cannot be perpendicular to the text. Is there any solution?

Apr.05,2022

the part that hides the data and the part that displays the data should be composed of different parts. Hide the part of the number and the part of the real number, set different line-height


flex


add the asterisk vertical-align: middle


personal advice.


change fonts under string segmentation. Some fonts 1 2 are in the middle. For example, the I see now is in the middle of 12 (upper and lower center)


should be the font problem. The simplest thing is to center the css background of the picture, and the picture can also use data uri, which is pure css

.



flex


flex ok



xxx123xxx 123
should be vertical-align: middle; set
back to baseline just


you can take a look at this, http://www.runoob.com/w3cnote...

.
Menu