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

APISummary
## 介绍

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

## 使用示例

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

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

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

const XHandleSize = () => {
  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(<XHandleSize />);

```

v0.11.0



## 语法

```css
::selection {
  -x-handle-size: 5px;
}
```

### 取值

- [`<length>`](/next/zh/api/css/data-type/length.md)

  设置浮标的大小

## 形式定义

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


## 形式语法

```
-x-handle-size = <length>
```

## 与 Web 的区别

- Lynx 特有的属性。

## 注意事项

- Android 上对应整个浮标大小，iOS 上对应浮标圆球的直径

## 兼容性

**Compatibility Table**

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

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

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

**`-x-handle-size`**

**Specifications:**

