CSS参考手册
设备适配 | Device Adaptation
用户变焦 | @viewport.user-zoom
user-zoom
CSS描述符控制用户是否能够改变由@viewport
所定义的文档的缩放因子。
/* Keyword values */
user-zoom: zoom;
user-zoom: fixed;
Related at-rule |
@viewport |
---|---|
初始值 |
zoom |
百分比值 |
refer to the size of bounding box |
适用媒体 |
visual, continuous |
计算值 |
as specified |
正规顺序 |
the unique non-ambiguous order defined by the formal grammar |
语法
值
zoom
用户可以放大或缩小。
fixed
用户无法放大或缩小。
正式语法
zoom | fixed
规范
Specification |
Status |
Comment |
---|---|---|
CSS Device AdaptationThe definition of '"user-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 |
? |
? |
? |
? |
? |
? |
设备适配 | Device Adaptation相关
层叠样式表( Cascading Style Sheets )是一种用来表现 HTML 或 XML 等文件样式的计算机语言。CSS 不仅可以静态地修饰网页,还可以配合各种脚本语言动态地对网页各元素进行格式化。