Firefox中的文本选择在从CSS中禁用后仍然有效

Firefox中的文本选择在从CSS中禁用后仍然有效,css,firefox,selection,Css,Firefox,Selection,我正在使用CSS规则: .noselect { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: moz-none; -ms-user-select: none; user-select: none; } 这将禁用在Chrome中(而不是在Firefox中)选择下面的div: <div cla

我正在使用CSS规则:

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: moz-none;
    -ms-user-select: none;
    user-select: none;
}
这将禁用在Chrome中(而不是在Firefox中)选择下面的div:

<div class="noselect">
    <span>This text cannot be selected</span>
</div>

无法选择此文本
我有最新的浏览器版本。可以在该文件中找到一个样本


Firefox有什么不同?如何禁用该选项?

对于firefox:只使用“none”而不是“moz none”

还发现
-moz none
而不是
moz none
也可以工作。但是是的,
none
更好