自定义光标在Firefox中不起作用

时间:2018-08-22 12:53:00

标签: css firefox cursor

我正在尝试使用自定义光标。它在Chrome和Safari中运行良好,但是Firefox似乎忽略了它。这是代码:

div {
    display: block;
    cursor: url('/default-1x.png') 1x, url('/default-2x.png') 2x, default;
    cursor: -webkit-image-set(url('/default-1x.png') 1x, url('/default-2x.png') 2x), default;
    cursor: -moz-image-set(url('/default-1x.png') 1x, url('/default-2x.png') 2x), default;
}

div {
    display: block;
    cursor: url('/auto-1x.png') 1x, url('/auto-2x.png') 2x, auto;
    cursor: -webkit-image-set(url('/auto-1x.png') 1x, url('/auto-2x.png') 2x), auto;
    cursor: -moz-image-set(url('/auto-1x.png') 1x, url('/auto-2x.png') 2x), auto;
}

div {
    display: block;
    cursor: url('/pointer-1x.png') 1x, url('pointer-2x.png') 2x, pointer;
    cursor: -webkit-image-set(url('pointer-1x.png') 1x, url('pointer-2x.png') 2x), pointer;
    cursor: -moz-image-set(url('/pointer-1x.png') 1x, url('/pointer-2x.png') 2x), pointer;
}

0 个答案:

没有答案