如何将这个球附加到光标上?
How do I attach this ball to the cursor?
我目前正在构建一个投资组合。我受到了 fubiz studio 的启发。他们的光标上附有这个非常酷的球。我想知道是否有人可以解释他们是如何做到这一点的,并可以给我指导如何构建它。
Fubiz 工作室:
http://fubiz.studio/en/selected-projects
我想这就是你想要的
.custom {
cursor: url(images/my-cursor.png), auto;
}
尝试将其添加到您的样式表中:
cursor: url("images/cursor.png"), pointer;
正如其他人所说,通过 CSS 完成此操作的最佳形式是使用 class cursor
,如下所示:
.class{
cursor: url(images-folder/cursor-image.png), auto;
}
另一方面,认为你有很多CSS class可以用光标修改和"play"的es:
.alias {cursor: alias;}
.all-scroll {cursor: all-scroll;}
.auto {cursor: auto;}
.cell {cursor: cell;}
.context-menu {cursor: context-menu;}
.col-resize {cursor: col-resize;}
.copy {cursor: copy;}
.crosshair {cursor: crosshair;}
.default {cursor: default;}
.e-resize {cursor: e-resize;}
.ew-resize {cursor: ew-resize;}
.grab {cursor: grab;}
.grabbing {cursor: grabbing;}
.help {cursor: help;}
.move {cursor: move;}
.n-resize {cursor: n-resize;}
.ne-resize {cursor: ne-resize;}
.nesw-resize {cursor: nesw-resize;}
.ns-resize {cursor: ns-resize;}
.nw-resize {cursor: nw-resize;}
.nwse-resize {cursor: nwse-resize;}
.no-drop {cursor: no-drop;}
.none {cursor: none;}
.not-allowed {cursor: not-allowed;}
.pointer {cursor: pointer;}
.progress {cursor: progress;}
.row-resize {cursor: row-resize;}
.s-resize {cursor: s-resize;}
.se-resize {cursor: se-resize;}
.sw-resize {cursor: sw-resize;}
.text {cursor: text;}
.url {cursor: url(myBall.cur),auto;}
.w-resize {cursor: w-resize;}
.wait {cursor: wait;}
.zoom-in {cursor: zoom-in;}
.zoom-out {cursor: zoom-out;}
拖动背景的部分是关于背景图像和css/js的工作,最后是混合所有网络开发工具。
我目前正在构建一个投资组合。我受到了 fubiz studio 的启发。他们的光标上附有这个非常酷的球。我想知道是否有人可以解释他们是如何做到这一点的,并可以给我指导如何构建它。
Fubiz 工作室: http://fubiz.studio/en/selected-projects
我想这就是你想要的
.custom {
cursor: url(images/my-cursor.png), auto;
}
尝试将其添加到您的样式表中:
cursor: url("images/cursor.png"), pointer;
正如其他人所说,通过 CSS 完成此操作的最佳形式是使用 class cursor
,如下所示:
.class{
cursor: url(images-folder/cursor-image.png), auto;
}
另一方面,认为你有很多CSS class可以用光标修改和"play"的es:
.alias {cursor: alias;}
.all-scroll {cursor: all-scroll;}
.auto {cursor: auto;}
.cell {cursor: cell;}
.context-menu {cursor: context-menu;}
.col-resize {cursor: col-resize;}
.copy {cursor: copy;}
.crosshair {cursor: crosshair;}
.default {cursor: default;}
.e-resize {cursor: e-resize;}
.ew-resize {cursor: ew-resize;}
.grab {cursor: grab;}
.grabbing {cursor: grabbing;}
.help {cursor: help;}
.move {cursor: move;}
.n-resize {cursor: n-resize;}
.ne-resize {cursor: ne-resize;}
.nesw-resize {cursor: nesw-resize;}
.ns-resize {cursor: ns-resize;}
.nw-resize {cursor: nw-resize;}
.nwse-resize {cursor: nwse-resize;}
.no-drop {cursor: no-drop;}
.none {cursor: none;}
.not-allowed {cursor: not-allowed;}
.pointer {cursor: pointer;}
.progress {cursor: progress;}
.row-resize {cursor: row-resize;}
.s-resize {cursor: s-resize;}
.se-resize {cursor: se-resize;}
.sw-resize {cursor: sw-resize;}
.text {cursor: text;}
.url {cursor: url(myBall.cur),auto;}
.w-resize {cursor: w-resize;}
.wait {cursor: wait;}
.zoom-in {cursor: zoom-in;}
.zoom-out {cursor: zoom-out;}
拖动背景的部分是关于背景图像和css/js的工作,最后是混合所有网络开发工具。