最大变焦 | @viewport.max-zoom (Device Adaptation) - CSS 中文开发手册 - Break易站
最大变焦 | @viewport.max-zoom (Device Adaptation) - CSS 中文开发手册
在max-zoomCSS的描述符集被定义文档的最大变焦倍数@viewport的规则。无论是自动还是根据用户的要求,浏览器都不会放大。
一个缩放因子的1.0或100%不对应任何缩放。较大的值会放大。较小的值会缩小。
Related at-rule | @viewport |
---|---|
初始值 | auto |
Percentages | 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 |
语法
1 2 3 4 5 6 7 8 9 | /* Keyword value */ max-zoom: auto ; /* <number> values */ max-zoom: 0.8 ; max-zoom: 2.0 ; /* <percentage> value */ max-zoom: 150% ; |
值
auto用户代理将设置文档的上限缩放因子限制。<number>限制缩放因子最大值的非负数。<percentage>限制缩放因子最大值的非负百分比。
正式语法
1 | auto | <number> | <percentage> |
规范
Specification | Status | Comment |
---|---|---|
CSS Device AdaptationThe definition of '"max-zoom" descriptor' in that specification. | Working Draft | Initial definition |
浏览器兼容性
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | ? | ? | ? | ? | ? |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | ? | ? | ? | ? | ? | ? |
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步