简体   繁体   English

rgba颜色代码是否较重?

[英]Are rgba color codes heavier to render?

I am more and more using rgba color codes for text in my stylesheets as it easily sets a lighter or darker variation of the color I need (white 80%, black 40%, etc.). 我越来越多地在样式表中使用rgba颜色代码作为文本,因为它可以轻松设置所需颜色的较浅或较深的变化(白色80%,黑色40%等)。

Is there a downside in using rgba color codes as opposed to hexa codes for text? 与文本的六进制代码相比,使用rgba颜色代码有不利之处吗? If I want a text to be grey, is rgba(0,0,0,.5) heavier to render than #898989? 如果我想让文本变成灰色,rgba(0,0,0,.5)的渲染比#898989重吗?

Thanks! 谢谢!

I think this is more of a personal option. 我认为这更多是个人选择。 To me, using hexa codes is easier. 对我来说,使用十六进制代码更容易。 It's the same thing at the end of it all. 最后都是一样的。 I think it really doesn't matter which one you choose, and won't make any noticeable difference concerning the performance. 我认为选择哪一个确实无关紧要,并且不会对性能产生任何明显的影响。 So, use what makes you more productive! 因此,请使用使您更有生产力的产品! :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM