> 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.

# -x-handle-color

APISummary
## 介绍

`-x-handle-color` 属性指定了复制文本时浮标的颜色，只在 selection 伪元件中有效。

## 使用示例

**下面是一个示例: css-api**

**Entry:** `src/-x-handle-color`
**Bundle:** `dist/-x-handle-color.lynx.bundle`

```tsx
import { root } from "@lynx-js/react";
import "./index.scss";

const XHandleColor = () => {
  return (
    <view className="container">
      <text className="text1" text-selection={true} flatten={false}>This is a text</text>
      <text className="text2" text-selection={true} flatten={false}>This is a text</text>
    </view>
  );
};

root.render(<XHandleColor />);

```

v0.11.0



## 语法

```css
::selection {
  -x-handle-color: blue;
}
```

### 取值

- [`<color>`](/next/zh/api/css/properties/color.md)

  设置浮标的颜色

## 形式定义

| 初始值 | false |
| 适用元素 | text |
| 是否支持继承 | no |
| 是否支持动画 | no |


## 形式语法

```
-x-handle-color = <color>
```

## 与 Web 的区别

- Lynx 特有的属性。

## 兼容性

**Compatibility Table**

**Query:** `css.properties.-x-handle-color`

[Source](https://github.com/lynx-family/lynx/blob/develop/tools/css_generator/css_defines/213--x-handle-color.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| -x-handle-color | Yes (1.0) | No | Yes (1.0) | No | No | No |

**`-x-handle-color`**

**Specifications:**

