示例工程 23-container-queries

23-container-queries/demo-01-card-states/README.md

markdown · 0.2 KB

运行:卡片的三种容器状态

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

# demo-01-card-states

一张卡片,三个容器宽度。

## 运行

直接打开 `index.html`。

## 观察

- 200px:堆叠
- 340px:左右两列
- 520px:左右两列,图片列更宽
- 容器查询按「宿主宽度」匹配,与视口无关