示例工程 36-aria-basics

36-aria-basics/app/README.md

markdown · 0.4 KB

运行:ARIA 基础 · role / name / value

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

# 36-aria-basics / app

名称、状态与实时区域。

## 运行

```bash
cd tutorials/html
python3 -m http.server 8080
# 打开 http://127.0.0.1:8080/examples/36-aria-basics/app/
```

## 观察

- 图标按钮用 aria-label
- 可见文字足够时不覆盖
- aria-labelledby 指向标题
- aria-expanded/aria-controls 表达展开
- role=status 播报状态