Dynamically change color to lighter or darker by percentage CSS (Javascript)

后端 未结 24 1791
-上瘾入骨i
-上瘾入骨i 2020-11-28 01:12

We have a big application on the site and we have a few links which are, let\'s say blue color like the blue links on this site. Now I want to make some other links, but wit

24条回答
  •  被撕碎了的回忆
    2020-11-28 01:31

    If you want darker color, you can use rgba black with low opacity:

    rgba(0,0,0,0.3)
    

    For lighter use white:

    rgba(255,255,255,0.3).
    

提交回复
热议问题