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

APISummary
## 介绍

用于设置下边框相关样式，该属性可按顺序设置 `border-bottom-width`、`border-bottom-style`、`border-bottom-color`。

## 使用示例

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

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

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

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

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

  const styles = [
    ["thick double red", "thin dotted blue"],
    ["10px dashed orange", "medium solid #0000ff"],
    ["5px groove rgba(0,255,0,0.6)", "10rpx ridge hsl(89,43%,51%)"],
    ["thick outset hsla(89,43%,51%,0.3)", "16px inset #ab0"],
  ];

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

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

root.render(<BorderBottom />);

```

v0.11.0



## 语法

```css
/* 下边框是粗双线红边框 */
border-bottom: thick double red;

/* 下边框是细点线蓝边框 */
border-bottom: thin dotted blue;

/* 下边框是10px虚线橙边框 */
border-bottom: 10px dashed orange;
```

### 取值

按语法顺序接受以下值类型：

- [`<line-width>`](/next/zh/api/css/properties/border-bottom.md#形式定义)
  - 见 [`<border-bottom-width>`](/next/zh/api/css/properties/border-bottom-width.md)

- [`<line-style>`](/next/zh/api/css/properties/border-bottom.md#形式定义)
  - 见 [`<border-bottom-style>`](/next/zh/api/css/properties/border-bottom-style.md)

- [`<color>`](/next/zh/api/css/data-type/color.md)
  - 见 [`<border-bottom-color>`](/next/zh/api/css/properties/border-bottom-color.md)

## 形式定义

| 初始值 | 空值 |
| 适用元素 | 所有元件 |
| 是否支持继承 | no |
| 是否支持动画 | no |


## 形式语法

```css

border-bottom =
  <line-width>  ||
  <line-style>  ||
  <color>

<line-width> = <length> | thin | medium | thick
<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset

```

## 与 Web 的区别

- [mdn:border-bottom](https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom)
- 不支持 inherit、initial、revert、unset 等全局值

## 兼容性

**Compatibility Table**

**Query:** `css.properties.border-bottom`

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

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

**`border-bottom`**

**Specifications:**

