更改文字选择光标 [英] Changing the text selection cursor

查看:76
本文介绍了更改文字选择光标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题所述,是否可以更改文本选择光标?在CSS中更改光标(例如 cursor:hand )只会更改普通光标。

As the title says, is there a way to change the text selection cursor? Changing the cursor in CSS (eg. cursor: hand) just changes the normal cursor.

推荐答案

我想您的意思是旧的光标,它出现在可编辑的文本中,用于指示要插入文本的位置或要进行文本删除或插入的位置。在现代系统中,它的外观通常是一条闪烁的(出现或消失的)细垂直线。恐怕无法按计划或提议进行更改。如果有的话,我希望可以在 CSS3基本用户界面模块中找到它,

I suppose you mean "cursor" in the old sense–the thing that appears in editable text to indicate the location where text is to be inserted or where text deletion or insertion is to take place. Its appearance is, in modern systems, typically a blinking (appearing and disappearing) thin vertical line. I’m afraid there isn’t a way to change it, even as planned or proposed. If there were, I would expect to find it in the CSS3 Basic User Interface Module, where the cursor property is defined.

CSS规范和草稿反映了光标的新含义,即, cursor 属性的定义位置。以前称为指针的东西。更进一步的困惑是,光标的可能值之一是指针(通常是一只手)。

The CSS specifications and drafts reflect a new meaning for "cursor," namely something that used to the called "pointer." For further confusion, one of the possible values for cursor is pointer (typically, appearing as a hand).

这篇关于更改文字选择光标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆