如何反转LESS中的颜色 [英] How to invert colors in LESS
本文介绍了如何反转LESS中的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有特定的颜色操作我没有看到你可以反转颜色?我看到许多颜色方法,但看不到这样做的方法。
参考:
解决方案
反转颜色有多种解释。
-
/ p>
spin(@color,180)
- p> p>
Is there a particular color operation I'm not seeing where you can invert colors? I'm seeing lots of color methods but could not see a way to do this.
reference:
解决方案
There are multiple interpretation of inverting color.
You want a color with the opposite hue:
spin(@color, 180)
You want a color that the sum with current one is white:
#fff - @color
这篇关于如何反转LESS中的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文