CSS

最小变焦 | @viewport.min-zoom

@viewport.min-zoom

min-zoomCSS的描述符设置通过@viewport定义文档的最小缩放系数。无论是自动还是根据用户要求,浏览器都不会缩放得超出此范围。

一个缩放因子1.0100%不对应任何缩放。较大的值会放大。较小的值会缩小。

Related at-rule@viewport
初始值auto
百分比值the zoom factor itself
媒体visual, continuous
计算值auto, or a non-negative number or percentage as specified
规范顺序the unique non-ambiguous order defined by the formal grammar

语法

/* Keyword value */ min-zoom: auto; /* <number> values */ min-zoom: 0.8; min-zoom: 2.0; /* <percentage> value */ min-zoom: 150%;

auto用户代理将设置文档的上限缩放比例限制。

形式语法

auto | <number> | <percentage>

规范

SpecificationStatusComment
CSS Device AdaptationThe definition of '"min-zoom" descriptor' in that specification.Working DraftInitial definition

浏览器兼容性

FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support?????

FeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support??????