user-zoom
CSS
descriptor controls whether or not the user can change the zoom factor of a document defined by
@viewport
.
/* Keyword values */ user-zoom: zoom; user-zoom: fixed;
zoom
The user can zoom in or out.
fixed
The user cannot zoom in or out.
Disabling zooming capabilities prevents people experiencing low vision conditions from being able to read and understand page content.
| 相关 at-rule |
@viewport
|
|---|---|
| 初始值 |
zoom
|
| 百分比 | refer to the size of bounding box |
| 计算值 | 如指定 |
zoom | fixed
@viewport {
user-zoom: fixed;
}
| 规范 | 状态 | 注释 |
|---|---|---|
|
CSS Device Adaptation
The definition of '"user-zoom" descriptor' in that specification. |
工作草案 | 初始定义 |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
user-zoom
descriptor
|
Chrome 不支持 29 — 84 |
Edge
完整支持
12
Prefixed
|
Firefox 不支持 No |
IE
完整支持
10
Prefixed
|
Opera 完整支持 16 | Safari 不支持 No | WebView Android 不支持 No | Chrome Android 不支持 29 — 84 | Firefox Android 不支持 No | Opera Android 完整支持 16 | Safari iOS 不支持 No | Samsung Internet Android 完整支持 2.0 |
完整支持
不支持
要求使用供应商前缀或不同名称。