为什么FireFox会冻结我在此登录表单中的输入



看看这个Fiddle。

这是我的登录页面和整个网站样式表的一部分。这个登录表单在Chrome中运行得很好,但在FireFox中,由于某种原因,它会在我开始写密码后冻结用户名输入,当你从密码框中删除焦点时,它也会被冻结。

这种事发生在你身上吗?如果是,知道为什么吗?


在Boris回答后,我的user-select手写笔功能现在工作得很好,看起来像这样:

user-select()
    user-select arguments
    -webkit-user-select arguments
    -o-user-select arguments
    if arguments == 'none'
        -moz-user-select -moz-none
    else
        -moz-user-select arguments

使用时渲染为:

user-select none:

user-select: none;
-webkit-user-select: none;
-o-user-select: none;
-moz-user-select: -moz-none;

user-select text:

user-select: text;
-webkit-user-select: text;
-o-user-select: text;
-moz-user-select: text;

-moz-user-select: none表示其内部没有可选择的内容,句点。里面的东西是什么风格并不重要。

如果希望能够通过设置子体样式来覆盖,则需要-moz-user-select: -moz-none

最新更新