max-zoom
CSS
descriptor sets the maximum zoom factor of a document defined by the
@viewport
at-rule
. The browser will not zoom in any further than this, whether automatically or at the user's request.
A
zoom factor
of
1.0
or
100%
corresponds to no zooming. Larger values are zoomed in. Smaller values are zoomed out.
/* Keyword value */ max-zoom: auto; /* <number> values */ max-zoom: 0.8; max-zoom: 2.0; /* <percentage> value */ max-zoom: 150%;
auto
<number>
A non-negative number limiting the maximum value of the zoom factor.
<percentage>
A non-negative percentage limiting the maximum value of the zoom factor.
| 相关 at-rule |
@viewport
|
|---|---|
| 初始值 |
auto
|
| 百分比 | the zoom factor itself |
| 计算值 |
auto
, or a non-negative number or percentage as specified
|
auto | <number> | <percentage>
@viewport {
max-zoom: 1.5;
}
| 规范 | 状态 | 注释 |
|---|---|---|
|
CSS Device Adaptation
The definition of '"max-zoom" descriptor' in that specification. |
工作草案 | 初始定义 |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
max-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 |
完整支持
不支持
要求使用供应商前缀或不同名称。