gpt4 book ai didi

javascript - 在 Internet Explorer 中的 contenteditable div 上隐藏插入符号(文本光标)

转载 作者:数据小太阳 更新时间:2023-10-29 05:37:48 26 4
gpt4 key购买 nike

我有一个 contenteditable div,我在上面有文件拖放和复制粘贴图像事件。通过使用 color:transparent 我可以隐藏 chrome 浏览器上闪烁的光标。但在 IE 中我开始知道“在 IE 上输入的文本光标的颜色总是背景颜色的反色”。来源:How do I change the color of the text cursor in an input field in IE?

是否有任何其他方法可以禁用光标或更改闪烁光标的速度,使其看起来像隐藏在 IE 中。

最佳答案

您可以在 CSS 中使用:

caret-color: transparent

虽然在 IE 中不起作用。这是 browser support chart .

关于javascript - 在 Internet Explorer 中的 contenteditable div 上隐藏插入符号(文本光标),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39345005/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com