<input type="password"> 在ie下光标问题

在ie浏览器上,在input type = password的输入框上双击,光标会消失,我大概试了下,type = text就不会有这个问题,请问这是怎么回事,有什么合理的解释吗?

clipboard.png

下面是解决方式

clipboard.png

阅读 2.8k
2 个回答

$(function(){


$("input[type='text']").each(function () {
    $(this).focus(function () {
        $(this).select();
    });

});

新手上路,请多包涵

光标与边框重叠了,加个 text-indent:3px;

推荐问题