使用HEX或RGBA [英] Use HEX or RGBA

查看:121
本文介绍了使用HEX或RGBA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的问题:如果我不打算在RGBA上使用Alpha,对于某些颜色,是否应该在这些颜色上使用十六进制? HEX有没有RGBA的东西?例如与浏览器的兼容性?还是一直使用RGBA很好吗?我觉得更好,因为如果我想使用Alpha,我可以。
预先感谢。

I've a simple question: If I'm not going to use Alpha on RGBA, for some colors, should I use HEX on these colors? Is there something HEX has that RGBA doesn't? Like browser compatibility, for example? Or is it just fine to use RGBA all the time? I find it better, cause if I would want to use Alpha, I could. Thanks in advance.

推荐答案

两者均应与任何符合标准的浏览器兼容。

Both should be compatible with any standards-compliant browser.

编辑:IE中可能有一些错误行为(惊奇!): http://css-tricks.com/ie-background-rgb-bug/

There might be some buggy behavior in IE (suprise!): http://css-tricks.com/ie-background-rgb-bug/

这篇关于使用HEX或RGBA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆