示例工程 42-logical-properties

42-logical-properties/demo-02-inset/README.md

markdown · 0.3 KB

运行:逻辑定位

点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。

# demo-02-inset

`inset-inline-end` 与 `inset-block-start`。

## 运行

直接打开 `index.html`。

## 观察

- 圆点在 LTR 在右上角
- RTL 下自动换到左上角
- 内容区 `padding-inline` 也自动镜像
- 不需要为 RTL 写第二套 `left` / `right`