上下文菜单颜色

时间:2019-02-06 22:45:26

标签: css

我正在尝试重现macOS上下文菜单:

enter image description here enter image description here

目前,我尝试选择颜色并使用不透明性,但是我无法通过其不透明性获得真正的背景颜色。

我在哪里可以得到它们?

多谢。

2 个答案:

答案 0 :(得分:2)

具有2层,您几乎可以获得完全相同的效果,下面显示了clement提到的一层

enter image description here

答案 1 :(得分:1)

您可以尝试

background-color: rgba(230, 230, 230, 0.9);
相关问题