min-width
CSS descriptor specifies the minimum width of the viewport of a document defined via
@viewport
.
默认情况下,
min-width
is set as close as possible to the initial viewport considering the minimum width constraint.
/* Keyword value */ min-width: auto; /* <length> values */ min-width: 320px; min-width: 40em; min-width: 5cm; /* <percentage> value */ min-width: 25%;
auto
The used value is calculated from the other CSS descriptors' values.
<length>
A non-negative absolute or relative length.
<percentage>
A percentage value relative to the width or height of the initial viewport at zoom factor 1.0, for horizontal and vertical lengths respectively. Must be non-negative.
| 相关 at-rule |
@viewport
|
|---|---|
| 初始值 |
auto
|
| 百分比 | refer to the width of the initial viewport |
| 计算值 |
if specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise,
auto
|
<viewport-length>where
<viewport-length> = auto | <length-percentage>where
<length-percentage> = <length> | <percentage>
@viewport {
min-width: 200px;
}
| 规范 | 状态 | 注释 |
|---|---|---|
|
CSS Device Adaptation
The definition of '"min-width" descriptor' in that specification. |
工作草案 | 初始定义 |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
min-width
descriptor
|
Chrome 不支持 29 — 84 |
Edge
完整支持
12
Prefixed
|
Firefox 不支持 No |
IE
完整支持
10
Prefixed
|
Opera
完整支持
16
|
Safari 不支持 No | WebView Android 不支持 4.4 — 37 | Chrome Android 不支持 29 — 84 | Firefox Android 不支持 No |
Opera Android
完整支持
16
|
Safari iOS 不支持 No | Samsung Internet Android 完整支持 2.0 |
完整支持
不支持
要求使用供应商前缀或不同名称。