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

# border-inline-end-width

APISummary
## 介绍

用于设置阅读模式结束方向的边框宽度。

在 `LTR` 模式下，`border-inline-end-width` 等价于 `border-right-width`。
在 `RTL` 模式下，`border-inline-end-width` 等价于 `border-left-width`。

## 使用示例

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

**Entry:** `src/border-inline-end-width`
**Bundle:** `dist/border-inline-end-width.lynx.bundle`

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

const BorderInlineEndWidth = () => {
  const [rtl, setRtl] = useState(false);

  const containerStyle = {
    direction: rtl ? "rtl" : "ltr" as "rtl" | "ltr",
  };

  const textStyle = {
    borderInlineStartWidth: "5px",
    borderInlineEndWidth: "20px",
  };

  return (
    <>
      <view className="con" bindtap={() => setRtl(!rtl)} style={containerStyle}>
        <text className="intro" style={textStyle}>1</text>
      </view>
      <text>Click above to switch, current {rtl ? "rtl" : "ltr"}</text>
    </>
  );
};

root.render(<BorderInlineEndWidth />);

```

v0.11.0



## 语法

```css
border-inline-end-width: thin;
border-inline-end-width: medium;
border-inline-end-width: thick;
border-inline-end-width: 10px;
```

### 取值

- `thin`
  细边框。

- `medium`
  中等边框。

- `thick`
  粗边框。

- [`<length>`](/next/zh/api/css/data-type/length.md)
  以具体的尺寸定义边框宽度

- 默认值
  **0px**

## 形式定义

| 初始值 | solid |
| 适用元素 | all elements |
| 是否支持继承 | no |
| 是否支持动画 | no |


## 形式语法

```
thin | medium | thick | <length>
```

## 扩展阅读

- [mdn:border-inline-end-width](https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-end-width)

- [direction](/next/zh/api/css/properties/direction.md)

## 兼容性

**Compatibility Table**

**Query:** `css.properties.border-inline-end-width`

[Source](https://github.com/lynx-family/lynx/blob/develop/tools/css_generator/css_defines/157-border-inline-end-width.json) · [MDN](https://developer.mozilla.org/zh-CN/docs/Web/CSS/border-inline-end-width)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| border-inline-end-width | Yes (1.0) | Yes (3.4) | Yes (1.0) | Yes (1.0) | Yes (1.0) | Yes |

**`border-inline-end-width`**

**Specifications:**

