Google 文档闪烁光标“kix-cursor-caret”

发布于 2024-12-18 15:53:00 字数 222 浏览 1 评论 0原文

我喜欢谷歌文档,但我发现闪烁的光标非常分散注意力。新版本的 google docs 不遵守显示固定(不闪烁)光标的操作系统设置。

我看到光标实际上只是“kix-cursor-caret”类的一个 div,其中显示属性只是在某种 JavaScript 计时器上从“无”到“内联”,导致光标看起来闪烁。

有谁知道哪个 javascript 行/命令导致 css 属性被更改并显示闪烁。非常感谢任何帮助。

I love google docs but I find a blinking cursor very distracting. The new version of google docs doesn't obey the operating system setting for displaying a solid (non-blinking) cursor.

I see that the cursor is really just a div of class "kix-cursor-caret" where the display property is just from "none" to "inline" on some sort of javascript timer somewhere that causes the cursor to appear to blink.

Does anybody have any idea which javascript line/command is causing the css property to be changed and displaying the blinking. Any help is greatly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

不一样的天空 2024-12-25 15:53:00

目前,这对我在 Chrome 中使用 Stylebot 有效:

.kix-cursor {
  -webkit-animation-iteration-count: 0;
}

Currently, this works for me with Stylebot in Chrome:

.kix-cursor {
  -webkit-animation-iteration-count: 0;
}
美人骨 2024-12-25 15:53:00

当前的答案都不适合我使用 Firefox + Stylish。
找到了有效的答案

.docs-text-ui-cursor-blink {
        animation-name: none;
}

我在 userstyles.org [1]: [1] https://userstyles.org/styles/125112/google-docs-disable-cursor-blink

None of the current answers worked for me using Firefox + Stylish.
I found a working answer at userstyles.org [1]:

.docs-text-ui-cursor-blink {
        animation-name: none;
}

[1] https://userstyles.org/styles/125112/google-docs-disable-cursor-blink

我喜欢麦丽素 2024-12-25 15:53:00

看来这个问题其实可以用CSS来解决。这条规则对我有用:

.kix-cursor-caret: inline !important;

我想你可以将其添加到某种用户样式表中,但实际上我以前从未制作过。

Looks like this can actually be solved with CSS. This rule worked for me:

.kix-cursor-caret: inline !important;

I suppose you could add this to some kind of user stylesheet, but I've actually never made one before.

伊恩的回答对我不起作用。我使用了这个 CSS:

.kix-cursor-caret: {
    opacity: 1 !important
}

并将其放入由 Stylebot Chrome 扩展

这阻止了当前版本的 Google 文档的疯狂。

Ian's answer didn't work for me. I used this CSS:

.kix-cursor-caret: {
    opacity: 1 !important
}

and put it in a user stylesheet managed by the Stylebot Chrome extension.

This stopped the madness in the current version of Google Docs.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文