IE兼容RGBa「建议收藏」

(26) 2023-03-27 10:39

Hi,大家好,我是编程小6,很荣幸遇见你,我把这些年在开发过程中遇到的问题或想法写出来,今天说一说IE兼容RGBa「建议收藏」,希望能够帮助你!!!。
IE兼容RGBa「建议收藏」_https://bianchenghao6.com/blog__第1张

style:

  .demo{ // other style ... // normal background-color: rgba(0, 0, 0, 0.8); // ie8- filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#cc000000', endColorstr='#cc000000'); z-index: 2; }
  .demo:not([ie9]) { // ie9 disable filter: progid:DXImageTransform.Microsoft.gradient(enabled='false') !important; }

filter transparent :

'#cc000000' :

  • cc = 80%
  • HEX 000000
100% — FF
95% — F2
90% — E6
85% — D9
80% — CC
75% — BF
70% — B3
65% — A6
60% — 99
55% — 8C
50% — 80
45% — 73
40% — 66
35% — 59
30% — 4D
25% — 40
20% — 33
15% — 26
10% — 1A
5% — 0D
0% — 00

上一篇

已是最后文章

下一篇

已是最新文章

发表回复