ARGB Hex color not working in css html

2019-02-11 15:03发布

Why is this ARGB hex not working?

<td style="background-color: #FFFF9980">

2条回答
做自己的国王
2楼-- · 2019-02-11 15:25

Use rgba(255,153,128,1.0) instead of your hex value (though if that really is ARGB it's the same as #ff9980 in RGB - if you meant RGBA then you'll need rgba(255,255,153,0.5)).

查看更多
唯我独甜
3楼-- · 2019-02-11 15:44

the CSS3 spec says:

Unlike RGB values, there is no hexadecimal notation for an RGBA value.

so you will have to use the rgba(255,153,128,1.0) mentioned above.

查看更多
登录 后发表回答