For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/css/properties/-x-caret-gradient.md.
Lynx
  • 简体中文
  • -x-caret-gradient

    介绍

    -x-caret-gradient 属性设置可编辑元件中文本插入光标的渐变。

    语法

    input {
      -x-caret-gradient: linear-gradient(to bottom, #3b82f6, #a855f7);
    }

    取值

    • none
      使用默认光标绘制。

    • <gradient>
      设置光标的渐变画刷。

    形式定义

    初始值none
    适用元素inputtextarea
    是否支持继承no
    是否支持动画no

    形式语法

    -x-caret-gradient = none | <gradient>

    与 Web 的区别

    • Lynx 特有的属性。

    兼容性

    LCD tables only load in the browser

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。