<input type=“password” …> styling with jQuery

ε祈祈猫儿з 提交于 2019-12-10 16:40:35

问题


Is this possible to change the default styling of password field? I mean replacing the default stars-symbols with something like &bull; or etc. jQuery or simply css/html? Thanx.


回答1:


Take a look at this article:

http://blog.decaf.de/2009/07/iphone-like-password-fields-using-jquery/




回答2:


The masking characters are set by the browser and operating system and you can't customize them with CSS.

Here's a thread that covers it more. You could fake it, but it will break if JavaScript is disabled.



来源:https://stackoverflow.com/questions/1343662/input-type-password-styling-with-jquery

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!