©
本文档使用
php.cn手册 发布
color-index:<integer>
<integer>:
用用整数值来定义彩色查询表中的条目数。不允许负值
本特性接受min和max前缀,因此可以派生出min-color-index和max-color-index两个媒体特性。
简单列举几个应用示例:
@media screen and (color-index){ … }
@import url(example.css) screen and (min-color-index:1);
<link media="screen and (color-index:0)" rel="stylesheet" href="example.css" />
Values | IE | Firefox | Chrome | Safari | Opera | iOS Safari | Android Browser | Android Chrome |
---|---|---|---|---|---|---|---|---|
Basic Support | 6.0-8.0 | 2.0-3.0 | 4.0-25.0#1 | 6.0#1 | 15.0+ | 6.0-6.1#1 | 2.1-4.3#1 | 18.0-24.0#1 |
9.0-11.0#1 | 3.5+ | 26.0+ | 6.1+ | 7.0+ | 4.4+ | 25.0+ |
不支持嵌套媒体查询。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
点击 "运行实例" 按钮查看在线实例