Chrome 中 RGBA 背景的属性值无效



我看到这个问题之前已经被问过两次,但两种解决方案都与删除间距有关。rgba(之间没有任何间距,我的问题似乎仍然存在。我的CSS代码是:

background: rbga(255,255,255,.7);

我也试过:

background-color: rbga(255,255,255,.7);

在Chrome中,两者都注册为Invalid property value

但是,如果我使用:

background-color: white;
opacity: .7;

上面的代码确实有效。rgba代码不起作用的任何原因?

请尝试使用

rgba(255,255,255,.7);

您的拼写不正确

你好,你有错别字background-color: rgba(255, 255, 255, .1);

你试过background-color: rBga(255,255,255,.7);

最新更新