Lock Android portrait via fullscreen then orientation.lock.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-27 14:30:43 +08:00
parent ed96b3ffb0
commit 0e3a8b08ec
5 changed files with 226 additions and 44 deletions
+11
View File
@@ -5,6 +5,17 @@
---
## 2026-07-27 — 安卓竖屏:全屏后系统锁定
### 变更
1. 说明:安卓 **Chrome 普通标签页** 不允许网页直接锁方向,必须先全屏再 `orientation.lock`(你以前能锁的,多半是 App/WebView/已装桌面,或点过全屏)。
2. 安卓首次点击 / 「点击锁定竖屏」:进入全屏并系统锁竖屏。
3. 已「添加到主屏幕」的应用走 manifest `orientation: portrait`,一般无需全屏。
4. 补充 X5/UC 竖屏 meta;锁失败时仍强制竖屏布局。
---
## 2026-07-27 — 手机端真·竖屏(禁横屏布局)
### 变更