> 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-right-width

APISummary
## 介绍

用于设置右边框的宽度。

## 使用示例

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

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

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

const BorderRightWidth = () => {
  const scrollViewStyle = {
    height: "100%",
  };

  const fixedAreaStyle = {
    width: "100%",
    height: "100%",
    flexDirection: "column" as const,
  };

  const widthOptions = [
    ["thin", "medium", "thick"],
    ["1px", "10px", "2rpx"],
    ["1em", "0.1em", "0.3rem"],
  ];

  return (
    <scroll-view className="root" scroll-orientation="vertical" style={scrollViewStyle}>
      <view className="fixed_area" style={fixedAreaStyle}>
        {widthOptions.map((row, rowIndex) => (
          <view key={`solid-${rowIndex}`}>
            <view className="row">
              {row.map((width, colIndex) => (
                <view
                  key={`solid-${rowIndex}-${colIndex}`}
                  className="box solid"
                  style={{ borderRightWidth: width }}
                >
                  <text className="text">{width}</text>
                </view>
              ))}
            </view>
          </view>
        ))}

        {widthOptions.map((row, rowIndex) => (
          <view key={`style-${rowIndex}`}>
            <view className="row">
              {row.map((width, colIndex) => (
                <view
                  key={`style-${rowIndex}-${colIndex}`}
                  className={`box styleDiff${colIndex}`}
                  style={{ borderRightWidth: width }}
                >
                  <text className="text">{width}</text>
                </view>
              ))}
            </view>
          </view>
        ))}

        {widthOptions.map((row, rowIndex) => (
          <view key={`radius-${rowIndex}`}>
            <view className="row">
              {row.map((width, colIndex) => (
                <view
                  key={`radius-${rowIndex}-${colIndex}`}
                  className={`box styleDiff${colIndex} radiusStyle${colIndex}`}
                  style={{ borderRightWidth: width }}
                >
                  <text className="text">{width}</text>
                </view>
              ))}
            </view>
          </view>
        ))}
      </view>
    </scroll-view>
  );
};

root.render(<BorderRightWidth />);

```

v0.11.0



## 语法

```css
border-right-width: thin;
border-right-width: medium;
```

### 取值

- `thin`
  细边框。

- `medium`
  中等边框。

- `thick`
  粗边框。

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

## 形式定义

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


## 形式语法

```
<line-width>
where
<line-width> = <length> | thin | medium | thick

```

## 与 Web 的区别

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

不支持 inherit、initial、revert、unset 等

默认值为 0, 区别于 web 的默认值 'medium'

## 兼容性

**Compatibility Table**

**Query:** `css.properties.border-right-width`

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

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

**`border-right-width`**

**Specifications:**

