h-jianghai

在网上可以看到很多颜色透明度与编码的对照图。

但是却没有明确的如何写。

首先,透明度从00-FF,一共256个梯度

下面以蓝色为例,标准蓝色是#0000FF,透明度加在最后面,即#0000FFXX(XX代表透明度);实际效果如下:

<div style="background:#0000FF00;width:25px;height:25px"></div>
<div style="background:#0000FF10;width:25px;height:25px"></div>
<div style="background:#0000FF20;width:25px;height:25px"></div>
<div style="background:#0000FF30;width:25px;height:25px"></div>
<div style="background:#0000FF40;width:25px;height:25px"></div>
<div style="background:#0000FF50;width:25px;height:25px"></div>
<div style="background:#0000FF60;width:25px;height:25px"></div>
<div style="background:#0000FF70;width:25px;height:25px"></div>
<div style="background:#0000FF80;width:25px;height:25px"></div>
<div style="background:#0000FF90;width:25px;height:25px"></div>
<div style="background:#0000FFA0;width:25px;height:25px"></div>
<div style="background:#0000FFB0;width:25px;height:25px"></div>
<div style="background:#0000FFC0;width:25px;height:25px"></div>
<div style="background:#0000FFD0;width:25px;height:25px"></div>
<div style="background:#0000FFE0;width:25px;height:25px"></div>
<div style="background:#0000FFF0;width:25px;height:25px"></div>
<div style="background:#0000FFFF;width:25px;height:25px"></div>

 

posted on 2020-05-29 08:40  南城丶丶  阅读(3751)  评论(0编辑  收藏  举报

分类:

技术点:

相关文章:

  • 2021-06-10
  • 2021-12-22
  • 2021-09-29
  • 2021-10-21
  • 2021-12-22
  • 2021-12-15
猜你喜欢
  • 2021-07-25
  • 2022-02-21
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案