You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

能否为自定义像素风光标设置image-rendering: pixelated属性?

像素风格自定义光标模糊问题

我设置了像素风格的自定义光标,代码如下:

body{    
    cursor: url('../img/my-cursor.png'), pointer;
}

但光标显示模糊,原因是未采用邻近缩放算法。我尝试用image-rendering: pixelated来实现像素化渲染,但这个方法无效:

body{    
    cursor: url('../img/my-cursor.png'), pointer;
    /* 无效 */
    image-rendering: pixelated;
}

目前针对这个问题的相关讨论尚未出现合适的解决方案。

内容的提问来源于stack exchange,提问作者Null Salad

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.14 09:20:54